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

@ -213,7 +213,7 @@ pandora.ui.infoView = function(data) {
.appendTo($div); .appendTo($div);
Ox.Editable({ Ox.Editable({
clickLink: clickLink, clickLink: clickLink,
format: function(value) { format: function(value) {
return value return value
? formatValue(value.split(', '), key) ? formatValue(value.split(', '), key)
: formatLight('unknown'); : formatLight('unknown');
@ -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);
}); });