From 57be46270daada50890df1797596f88761dda04f Mon Sep 17 00:00:00 2001 From: William Toohey Date: Thu, 4 Feb 2016 18:00:46 +1000 Subject: [PATCH] Minor CSS fixes --- src/css/hues-editor.css | 4 ++-- src/js/HuesSettings.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/css/hues-editor.css b/src/css/hues-editor.css index aafe324..70f57c5 100644 --- a/src/css/hues-editor.css +++ b/src/css/hues-editor.css @@ -70,6 +70,7 @@ align-items: center; position: absolute; margin-top: 4px; + margin-left: -4px; } #edit-timelock:before { @@ -92,10 +93,9 @@ #edit-timelock > .hues-button { /* because of the pseudo element this one can't be transparent */ background-color: rgb(171,171,171) !important; - } -#edit-timelock:hover > .hues-button { +#edit-timelock > .hues-button:hover { background-color: rgb(236,236,236) !important; } diff --git a/src/js/HuesSettings.js b/src/js/HuesSettings.js index 4ade8b6..4bfcb6d 100644 --- a/src/js/HuesSettings.js +++ b/src/js/HuesSettings.js @@ -261,12 +261,13 @@ HuesSettings.prototype.connectCore = function(core) { }; HuesSettings.prototype.show = function() { - if(this.core) + if(this.core) { this.core.hideLists(); + if(this.core.editor) + this.core.editor.resize(); + } this.window.style.display = "-webkit-flex"; this.window.style.display = "flex"; - if(this.core.editor) - this.core.editor.resize(); }; HuesSettings.prototype.hide = function() {