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 {