From d77615c42253566ebb29ed30bba4702bb2872b80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Schr=C3=B6der?= Date: Sun, 18 Feb 2024 14:16:20 +0100 Subject: [PATCH] luci-theme-bootstrap: Allways show scrollbar MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With this addition to the body tag, on desktop browsers the vertical scrollbar is always visible and the content will not be shifted by changing tabs (like at System/Software when the update tab has no to little content). I couldn't see any negative side effects with Chromium browsers or Firefox under Windows/Linux and Android, but I don't have access to Apple devices for tests. Signed-off-by: Thomas Schröder --- .../htdocs/luci-static/bootstrap/cascade.css | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index f1b6dccab2..9cf9b45b38 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -288,6 +288,7 @@ body { min-height: 100%; display: flex; flex-direction: column; + overflow-y: scroll; } .container { -- 2.30.2