make HSL values right-aligned in info view
This commit is contained in:
parent
85e721d55e
commit
7af2afae73
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue