Skip to content

Commit

Permalink
Improve attributes display consistency
Browse files Browse the repository at this point in the history
Use the same color for extra attribute names than for existing ttl and
tags label. While here, remove extra colon after tags to match the other
labels.
  • Loading branch information
smortex committed Oct 28, 2022
1 parent 81d5d4d commit 494f89d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/riemann/dash/public/eventPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var eventPane = (function() {
'<pre class="description">{{-description}}</pre>');

var rowTemplate =
_.template("<tr><td>{{-field}}</td><td>{{-value}}</td></tr>");
_.template('<tr><td class="field-name">{{-field}}</td><td>{{-value}}</td></tr>');

// Hide the pane
var hide = function() {
Expand Down
7 changes: 6 additions & 1 deletion lib/riemann/dash/views/css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ html,table {

.tags:before {
color: $grey;
content: "tags: ";
content: "tags ";
}

.field-name {
color: $grey;
text-align: right;
}

.description {
Expand Down

0 comments on commit 494f89d

Please sign in to comment.