From 69b681495a89a3a59f4c5479e939790c91a2fae8 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 20 Sep 2026 12:40:26 +0200 Subject: [PATCH] Sidebar: fix the horizontal scrollbar at the bottom The logo (aspect ratio 480:108) was rendered at a fixed height of 56px, which makes it ~249px wide - wider than the sidebar's ~207px content box. That overflow is what forced the horizontal scrollbar. It now scales by width and keeps 56px only as an upper bound. Also hide horizontal overflow on the sidebar itself and let long labels like "Berechtigungsgruppen" wrap, so no future entry can bring the scrollbar back. Co-Authored-By: Claude Opus 5 --- assets/css/style.css | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 59eae09..c8676a3 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -79,6 +79,9 @@ a:hover { color: var(--gold-hover); text-decoration: underline; } top: 0; height: 100vh; overflow-y: auto; + /* Nichts in der Sidebar soll je waagerecht scrollen - lange Menuepunkte werden + stattdessen umgebrochen (siehe .sidebar-link .label). */ + overflow-x: hidden; } .sidebar-brand { @@ -89,10 +92,15 @@ a:hover { color: var(--gold-hover); text-decoration: underline; } .sidebar-brand a { display: block; } +/* Das Logo ist sehr breit (Seitenverhaeltnis 480:108). Mit fester Hoehe waere es breiter + als die Sidebar und wuerde unten eine waagerechte Scrollleiste erzeugen - deshalb + skaliert es ueber die Breite und behaelt seine Hoehe nur als Obergrenze. */ .sidebar-brand img { display: block; - height: 56px; - width: auto; + width: 100%; + max-width: 100%; + height: auto; + max-height: 56px; } .sidebar-brand a { color: var(--gold); } @@ -180,6 +188,14 @@ a:hover { color: var(--gold-hover); text-decoration: underline; } font-size: 0.95rem; } +/* Lange Bezeichnungen wie "Berechtigungsgruppen" duerfen den Menuepunkt nicht breiter + machen als die Sidebar (Flex-Kinder waeren sonst mindestens so breit wie ihr laengstes + Wort). */ +.sidebar-link .label { + min-width: 0; + overflow-wrap: anywhere; +} + .sidebar-link:hover { background: var(--bg-panel-alt); color: var(--text);