Skip to content

Commit 494f89d

Browse files
committed
Improve attributes display consistency
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.
1 parent 81d5d4d commit 494f89d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

lib/riemann/dash/public/eventPane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var eventPane = (function() {
1717
'<pre class="description">{{-description}}</pre>');
1818

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

2222
// Hide the pane
2323
var hide = function() {

lib/riemann/dash/views/css.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ html,table {
167167

168168
.tags:before {
169169
color: $grey;
170-
content: "tags: ";
170+
content: "tags ";
171+
}
172+
173+
.field-name {
174+
color: $grey;
175+
text-align: right;
171176
}
172177

173178
.description {

0 commit comments

Comments
 (0)