mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-14 18:22:46 -06:00
fix(ui): make sidebar nav scrollable on short screens
On a short viewport (e.g. 1366x768) the sidebar nav was taller than the screen with no scroll, so items below the fold (Settings) were unreachable. Add overflow-y:auto + min-height:0 to .nav-links (the min-height:0 lets the flex child shrink and scroll instead of overflowing).
This commit is contained in:
parent
171b69233c
commit
2e14de2069
|
|
@ -212,6 +212,11 @@ body {
|
|||
.nav-links {
|
||||
flex: 1;
|
||||
padding: 12px 8px;
|
||||
/* Scroll the nav when it's taller than the viewport (short screens, e.g.
|
||||
1366x768) so items below the fold (Settings) stay reachable. min-height:0
|
||||
is required for a flex child to shrink and scroll instead of overflowing. */
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
|
|
|
|||
Loading…
Reference in a new issue