From 0e2a9da895f434c051fa368ff2a2d29476804ace Mon Sep 17 00:00:00 2001 From: Ondrej Zara Date: Tue, 17 Mar 2020 22:11:55 +0100 Subject: [PATCH] cleanup --- app/css/elements/song.less | 7 ++----- app/cyp.js | 6 +++--- app/js/elements/settings.js | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/css/elements/song.less b/app/css/elements/song.less index 8444110..0b3959d 100644 --- a/app/css/elements/song.less +++ b/app/css/elements/song.less @@ -11,7 +11,7 @@ cyp-song { cyp-queue & { > .icon { width: 32px; - margin-right: 8px; // fixme variable + margin-right: 8px; } .track { display: none; } @@ -39,10 +39,7 @@ cyp-song { padding-top: 0; padding-bottom: 0; - > .icon { - width: 64px; // fixme variable - } - + > .icon { width: 64px;} > .icon-play { display: none; } } } diff --git a/app/cyp.js b/app/cyp.js index fe2a407..b2c07ec 100644 --- a/app/cyp.js +++ b/app/cyp.js @@ -1388,9 +1388,9 @@ class Settings extends Component { this._app.setAttribute("color", color); } - _setYtLimit(limit) { - saveToStorage("color", color); - setYtLimit(limit); + _setYtLimit(ytLimit) { + saveToStorage("ytLimit", ytLimit); + setYtLimit(ytLimit); } _onComponentChange(c, isThis) { diff --git a/app/js/elements/settings.js b/app/js/elements/settings.js index 6e80f60..325a536 100644 --- a/app/js/elements/settings.js +++ b/app/js/elements/settings.js @@ -70,9 +70,9 @@ class Settings extends Component { this._app.setAttribute("color", color); } - _setYtLimit(limit) { - saveToStorage("color", color); - conf.setYtLimit(limit); + _setYtLimit(ytLimit) { + saveToStorage("ytLimit", ytLimit); + conf.setYtLimit(ytLimit); } _onComponentChange(c, isThis) {