Fix width issue with simplified UI due to desktop mode leftovers

This commit is contained in:
Christophe Gagnier 2023-11-30 01:18:41 -05:00 committed by Woody
parent cff42b5d27
commit bd620a764d
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -2970,7 +2970,7 @@ function togglePcMode(fromB = false)
gId('buttonPcm').className = (pcMode) ? "active":""; gId('buttonPcm').className = (pcMode) ? "active":"";
gId('bot').style.height = (pcMode && !cfg.comp.pcmbot) ? "0":"auto"; gId('bot').style.height = (pcMode && !cfg.comp.pcmbot) ? "0":"auto";
sCol('--bh', gId('bot').clientHeight + "px"); sCol('--bh', gId('bot').clientHeight + "px");
_C.style.width = (pcMode)?'100%':'400%'; _C.style.width = (pcMode || simplifiedUI)?'100%':'400%';
} }
function mergeDeep(target, ...sources) function mergeDeep(target, ...sources)
@ -3029,6 +3029,7 @@ function tooltip()
function simplifyUI() { function simplifyUI() {
// Disable PC Mode as it does not exist in simple UI // Disable PC Mode as it does not exist in simple UI
if (pcMode) togglePcMode(true); if (pcMode) togglePcMode(true);
_C.style.width = '100%'
_C.style.setProperty('--n', 1); _C.style.setProperty('--n', 1);
// Put effects below palett list // Put effects below palett list