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:
@@ -1127,6 +1127,13 @@ table.dashboard td a:hover {
|
|||||||
On non-dashboard pages, wrap content in a glass panel. */
|
On non-dashboard pages, wrap content in a glass panel. */
|
||||||
#displaybox {
|
#displaybox {
|
||||||
padding: 20px 28px !important;
|
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 */
|
/* Header bar — MUST stay transparent, no glass background */
|
||||||
|
|||||||
Reference in New Issue
Block a user