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 <noreply@anthropic.com>
This commit is contained in:
parent
60230081fc
commit
69b681495a
1 changed files with 18 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue