fix: make the sidebar scrollable when content overflows (#6031)

This commit is contained in:
superafun 2026-07-27 23:10:57 +08:00 committed by GitHub
parent 74b13db3fa
commit a789f29cee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -56,6 +56,8 @@ nav {
position: fixed;
top: 4em;
left: 0;
height: calc(100vh - 4em);
overflow-y: auto;
}
html[dir="rtl"] nav {

View file

@ -113,8 +113,9 @@
top: 0;
z-index: 99999;
background: var(--surfaceSecondary);
height: 100%;
height: 100vh;
width: 16em;
overflow-y: auto;
box-shadow: 0 0 5px var(--borderPrimary);
transition: 0.1s ease left;
left: -17em;