Commit 3700c13c authored by afc163's avatar afc163

Fixed siderbar should be scrollable, close #2191

parent 57cb464f
@import '~antd/lib/style/themes/default.less'; @import '~antd/lib/style/themes/default.less';
@nav-header-height: 64px;
.logo { .logo {
height: 64px; height: @nav-header-height;
position: relative; position: relative;
line-height: 64px; line-height: @nav-header-height;
padding-left: (@menu-collapsed-width - 32px) / 2; padding-left: (@menu-collapsed-width - 32px) / 2;
transition: all 0.3s; transition: all 0.3s;
background: #002140; background: #002140;
...@@ -33,6 +35,10 @@ ...@@ -33,6 +35,10 @@
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
:global(.ant-menu-root) {
overflow-y: auto;
height: ~'calc(100vh - @{nav-header-height})';
}
} }
&.light { &.light {
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05); box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment