From 969c240553d02527849d82f6aa24092a24e9e832 Mon Sep 17 00:00:00 2001 From: Kaloyan Danchev Date: Sun, 8 Feb 2026 11:02:23 +0200 Subject: [PATCH] Fix horizontal scroll caused by sidebar margin offset Constrain #displaybox max-width to viewport minus sidebar width and add overflow-x: hidden to prevent horizontal scrollbar. Co-Authored-By: Claude Opus 4.6 --- style.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/style.css b/style.css index a937875..c36d2b6 100644 --- a/style.css +++ b/style.css @@ -1127,6 +1127,13 @@ table.dashboard td a:hover { On non-dashboard pages, wrap content in a glass panel. */ #displaybox { padding: 20px 28px !important; + box-sizing: border-box !important; + max-width: calc(100vw - var(--sidebar-collapsed)) !important; + overflow-x: hidden !important; +} + +html.sidebar-expanded.Theme--sidebar #displaybox { + max-width: calc(100vw - var(--sidebar-expanded)) !important; } /* Header bar — MUST stay transparent, no glass background */