From bd620a764d795d93fe9db4af6c62330dbaa03aff Mon Sep 17 00:00:00 2001 From: Christophe Gagnier Date: Thu, 30 Nov 2023 01:18:41 -0500 Subject: [PATCH] Fix width issue with simplified UI due to desktop mode leftovers --- wled00/data/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index 08fc123f7..6f8d0b2d7 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -2970,7 +2970,7 @@ function togglePcMode(fromB = false) gId('buttonPcm').className = (pcMode) ? "active":""; gId('bot').style.height = (pcMode && !cfg.comp.pcmbot) ? "0":"auto"; sCol('--bh', gId('bot').clientHeight + "px"); - _C.style.width = (pcMode)?'100%':'400%'; + _C.style.width = (pcMode || simplifiedUI)?'100%':'400%'; } function mergeDeep(target, ...sources) @@ -3029,6 +3029,7 @@ function tooltip() function simplifyUI() { // Disable PC Mode as it does not exist in simple UI if (pcMode) togglePcMode(true); + _C.style.width = '100%' _C.style.setProperty('--n', 1); // Put effects below palett list