Commit a7724013 authored by 何乐's avatar 何乐 Committed by 陈帅

fix: horizontal scroll bar appears on SiderMenu with light navTheme (#3381)

* fix: horizontal scroll bar appears on SiderMenu with light navTheme

* a better solution
parent d8a026f2
...@@ -35,10 +35,19 @@ ...@@ -35,10 +35,19 @@
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
:global(.ant-menu-root) { :global {
.ant-menu-root {
overflow-y: auto; overflow-y: auto;
height: ~'calc(100vh - @{nav-header-height})'; height: ~'calc(100vh - @{nav-header-height})';
} }
.ant-menu-inline {
border-right: 0;
.ant-menu-item,
.ant-menu-submenu-title {
width: 100%;
}
}
}
} }
&.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