From 31d3eabcf84f50b26660b6cad4991697c2784813 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 24 Feb 2026 06:46:15 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=A1=B9=E8=BF=87=E5=A4=9A=E6=97=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=BB=9A=E5=8A=A8=EF=BC=8C=E5=BA=95=E9=83=A8=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E8=A2=AB=E6=88=AA=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../layout/Sidebar/Sidebar.module.scss | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/frontend/admin-web/src/components/layout/Sidebar/Sidebar.module.scss b/frontend/admin-web/src/components/layout/Sidebar/Sidebar.module.scss index 9c6b6a12..d89e8381 100644 --- a/frontend/admin-web/src/components/layout/Sidebar/Sidebar.module.scss +++ b/frontend/admin-web/src/components/layout/Sidebar/Sidebar.module.scss @@ -122,10 +122,24 @@ &__navWrapper { width: $sidebar-width; position: relative; - flex-shrink: 0; flex: 1; + min-height: 0; display: flex; flex-direction: column; + overflow-y: auto; + overflow-x: hidden; + + /* 滚动条样式 */ + &::-webkit-scrollbar { + width: 4px; + } + &::-webkit-scrollbar-track { + background: transparent; + } + &::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.2); + border-radius: 2px; + } } &__nav { @@ -133,11 +147,9 @@ display: flex; flex-direction: column; align-items: flex-start; - justify-content: center; padding: 16px 4px 16px 16px; box-sizing: border-box; gap: 8px; - flex-shrink: 0; } &__toggle {