Skip to content

Commit

Permalink
fix: 修复左侧菜单无法滚动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jun 9, 2019
1 parent f294350 commit d0cb1e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/components/sidebar-menu/sidebar-menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
}
}

.ant-menu-root {
height: ~'calc(100vh - @{nav-header-height})';
overflow-y: auto;
}

&.is-collapsed {
// 请根据项目logo自行调整
.lotus-sidebar-menu__logo > img {
Expand Down
3 changes: 1 addition & 2 deletions src/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ ol {
// 美化滚动条
::-webkit-scrollbar {
width: 5px;
height: 5px
}

::-webkit-scrollbar-thumb {
background: #ccc;
background: transparent;
border-radius: 4px;
}

0 comments on commit d0cb1e8

Please sign in to comment.