From 73fe359d3bcfd78c8be4f252bb550d649efd13b2 Mon Sep 17 00:00:00 2001 From: Francesco M Date: Tue, 5 Jul 2022 22:38:21 +0200 Subject: [PATCH 1/3] fix https://github.com/dimagoltsman/generic-remote-control-card/issues/18 --- dist/remotes/samsungtv/remote-html.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/remotes/samsungtv/remote-html.js b/dist/remotes/samsungtv/remote-html.js index 3168572..768f813 100644 --- a/dist/remotes/samsungtv/remote-html.js +++ b/dist/remotes/samsungtv/remote-html.js @@ -27,8 +27,7 @@ function getRemoteStyle_samsungtv(config) { #remote-control-samsungtv h2, #remote-control-samsungtv span { - position: absolute; - left: 5000px + display: none; } #remote-control-samsungtv ul { From 120de05aefa2688d0a74fb05f183a15ad1f529d9 Mon Sep 17 00:00:00 2001 From: Francesco M Date: Tue, 5 Jul 2022 22:43:01 +0200 Subject: [PATCH 2/3] center alignment instead of right in card --- dist/remotes/samsungtv/remote-html.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/remotes/samsungtv/remote-html.js b/dist/remotes/samsungtv/remote-html.js index 768f813..28cd26b 100644 --- a/dist/remotes/samsungtv/remote-html.js +++ b/dist/remotes/samsungtv/remote-html.js @@ -23,6 +23,7 @@ function getRemoteStyle_samsungtv(config) { background: url(${base_url}/samsungtv_remote.png) no-repeat; width: 224px; height: 728px + margin: auto; } #remote-control-samsungtv h2, From 1b8fd12c787383044ebb28af8efe98080b3478b2 Mon Sep 17 00:00:00 2001 From: Francesco M Date: Tue, 5 Jul 2022 22:57:17 +0200 Subject: [PATCH 3/3] code linting --- dist/remotes/samsungtv/remote-html.js | 82 +++++++++++---------------- 1 file changed, 33 insertions(+), 49 deletions(-) diff --git a/dist/remotes/samsungtv/remote-html.js b/dist/remotes/samsungtv/remote-html.js index 28cd26b..c148db9 100644 --- a/dist/remotes/samsungtv/remote-html.js +++ b/dist/remotes/samsungtv/remote-html.js @@ -26,11 +26,6 @@ function getRemoteStyle_samsungtv(config) { margin: auto; } -#remote-control-samsungtv h2, -#remote-control-samsungtv span { - display: none; -} - #remote-control-samsungtv ul { margin: 0; padding: 0; @@ -480,58 +475,47 @@ function getRemoteStyle_samsungtv(config) { function getRemoteHtml_samsungtv(config){ const template = config.remote_template; return ` -

${config.name}

-

- Main navigation -

- - - -
- `; }