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 <noreply@anthropic.com>
This commit is contained in:
Kaloyan Danchev
2026-02-08 11:02:23 +02:00
parent b17efa805f
commit 969c240553

View File

@@ -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 */