From 25d4be7aaef1e77c519a1badbdfe11f9195ad10e Mon Sep 17 00:00:00 2001 From: Speng Reb Date: Thu, 21 May 2026 13:00:36 +0200 Subject: [PATCH] Fix bug where if Big Picture mode was set as default layout switching layouts would look weird --- www/js/util.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/www/js/util.js b/www/js/util.js index dd76f060..8c9b8830 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1773,6 +1773,9 @@ function clearTVMessageFadeTimer($msg) { function detectCurrentLayoutName() { var body = $("body"); + if (body.hasClass("compact")) { + return "compact"; + } if (body.hasClass("hd")) { return "hd"; } @@ -1797,6 +1800,9 @@ function backToNormalLayout(event) { if (!nextLayout || nextLayout === "tv") { nextLayout = USEROPTS.layout; } + if (nextLayout === "default" && USEROPTS.layout === "tv") { + nextLayout = "fluid"; + } if (!nextLayout || nextLayout === "tv") { nextLayout = "fluid"; } @@ -1820,6 +1826,9 @@ function backToNormalLayout(event) { case "hd": hdLayout(); break; + case "compact": + compactLayout(); + break; default: compactLayout(); break;