Skip to content

Commit d0cb1e8

Browse files
author
wangxingkang
committed
fix: 修复左侧菜单无法滚动问题
1 parent f294350 commit d0cb1e8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/sidebar-menu/sidebar-menu.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
}
4646
}
4747

48+
.ant-menu-root {
49+
height: ~'calc(100vh - @{nav-header-height})';
50+
overflow-y: auto;
51+
}
52+
4853
&.is-collapsed {
4954
// 请根据项目logo自行调整
5055
.lotus-sidebar-menu__logo > img {

src/global.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ ol {
5050
// 美化滚动条
5151
::-webkit-scrollbar {
5252
width: 5px;
53-
height: 5px
5453
}
5554

5655
::-webkit-scrollbar-thumb {
57-
background: #ccc;
56+
background: transparent;
5857
border-radius: 4px;
5958
}

0 commit comments

Comments
 (0)