make HSL values right-aligned in info view

This commit is contained in:
rolux 2011-10-27 13:14:37 +00:00
parent 85e721d55e
commit 7af2afae73

View file

@ -424,7 +424,11 @@ pandora.ui.infoView = function(data) {
$('<div>') $('<div>')
.css({marginBottom: '4px'}) .css({marginBottom: '4px'})
.append(formatKey(key, true)) .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); .appendTo($statistics);
}); });