From a789f29ceec4734e7471592921d1ce67f1a10a7e Mon Sep 17 00:00:00 2001 From: superafun Date: Mon, 27 Jul 2026 23:10:57 +0800 Subject: [PATCH] fix: make the sidebar scrollable when content overflows (#6031) --- frontend/src/css/base.css | 2 ++ frontend/src/css/mobile.css | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/css/base.css b/frontend/src/css/base.css index cdb3319b..268289ac 100644 --- a/frontend/src/css/base.css +++ b/frontend/src/css/base.css @@ -56,6 +56,8 @@ nav { position: fixed; top: 4em; left: 0; + height: calc(100vh - 4em); + overflow-y: auto; } html[dir="rtl"] nav { diff --git a/frontend/src/css/mobile.css b/frontend/src/css/mobile.css index baace203..8c0a7641 100644 --- a/frontend/src/css/mobile.css +++ b/frontend/src/css/mobile.css @@ -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;