mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 18:01:33 +08:00
UX: CSS tweaks for badge query previews
This commit is contained in:
@ -19,7 +19,7 @@ export default Ember.Controller.extend({
|
|||||||
|
|
||||||
query_plan_html: function() {
|
query_plan_html: function() {
|
||||||
var raw = this.get('model.query_plan'),
|
var raw = this.get('model.query_plan'),
|
||||||
returned = "<pre>";
|
returned = "<pre class='badge-query-plan'>";
|
||||||
|
|
||||||
_.each(raw, function(linehash) {
|
_.each(raw, function(linehash) {
|
||||||
returned += Handlebars.Utils.escapeExpression(linehash["QUERY PLAN"]);
|
returned += Handlebars.Utils.escapeExpression(linehash["QUERY PLAN"]);
|
||||||
|
@ -2,9 +2,8 @@
|
|||||||
{{#if errors}}
|
{{#if errors}}
|
||||||
<p class="error-header">{{i18n admin.badges.preview.sql_error_header}}</p>
|
<p class="error-header">{{i18n admin.badges.preview.sql_error_header}}</p>
|
||||||
|
|
||||||
<div class="badge-errors">
|
<pre class="badge-errors">{{errors}}</pre>
|
||||||
{{errors}}
|
|
||||||
</div>
|
|
||||||
<!--
|
<!--
|
||||||
TODO we want some help pages for this, link to those instead
|
TODO we want some help pages for this, link to those instead
|
||||||
<p>
|
<p>
|
||||||
|
@ -424,16 +424,18 @@ section.details {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-query-plan, .badge-errors {
|
.badge-errors {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 16px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
background-color: scale-color-diff();
|
background-color: scale-color-diff();
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-query-plan {
|
.badge-query-plan {
|
||||||
font-size: 80%;
|
font-size: 12px;
|
||||||
}
|
line-height: 13px;
|
||||||
.badge-errors {
|
padding: 4px;
|
||||||
font-family: monospace;
|
background-color: scale-color-diff();
|
||||||
}
|
}
|
||||||
|
|
||||||
.count-warning {
|
.count-warning {
|
||||||
|
Reference in New Issue
Block a user