From 7af2afae73d2baf3a17e95016904e402b44002d1 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 27 Oct 2011 13:14:37 +0000 Subject: [PATCH] make HSL values right-aligned in info view --- static/js/pandora/infoView.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index f72a4824..4cf78866 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -213,7 +213,7 @@ pandora.ui.infoView = function(data) { .appendTo($div); Ox.Editable({ clickLink: clickLink, - format: function(value) { + format: function(value) { return value ? formatValue(value.split(', '), key) : formatLight('unknown'); @@ -424,7 +424,11 @@ pandora.ui.infoView = function(data) { $('
') .css({marginBottom: '4px'}) .append(formatKey(key, true)) - .append(Ox.Theme.formatColor(data[key] || 0, key == 'volume' ? 'lightness' : key)) + .append( + Ox.Theme.formatColor( + data[key] || 0, key == 'volume' ? 'lightness' : key + ).css({textAlign: 'right'}) + ) .appendTo($statistics); });