mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-20 13:13:20 -06:00
Merge pull request #34 from screentinker/fix/sidebar-scroll
fix(ui): sidebar nav unscrollable on short screens
This commit is contained in:
commit
c1fbe165e7
|
|
@ -212,6 +212,11 @@ body {
|
||||||
.nav-links {
|
.nav-links {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 12px 8px;
|
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 {
|
.nav-link {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue