diff --git a/src/components/layout/main.less b/src/components/layout/main.less index 123db11..685a4e9 100644 --- a/src/components/layout/main.less +++ b/src/components/layout/main.less @@ -106,6 +106,13 @@ transition: @transition-ease-out; } } + + .siderMenu { + position: absolute; + width: 100%; + max-height: ~"calc(100% - 88px)"; // https://github.com/less/less.js/issues/974 + overflow-y: scroll; + } .switchtheme { width: 100%; @@ -118,7 +125,8 @@ align-items: center; padding: 0 16px 0 24px; overflow: hidden; - + z-index: 1000; + span { white-space: nowrap; overflow: hidden; diff --git a/src/components/layout/menu.js b/src/components/layout/menu.js index 9344ccd..5388654 100644 --- a/src/components/layout/menu.js +++ b/src/components/layout/menu.js @@ -26,10 +26,11 @@ const getMenus = function (menuArray, siderFold, parentPath) { }) } -function Menus ({ siderFold, darkTheme, location, isNavbar, handleClickNavMenu }) { +function Menus ({ siderFold, darkTheme, location, isNavbar, handleClickNavMenu, className }) { const menuItems = getMenus(menu, siderFold) return ( {siderFold ? '' : {config.logoText}} - + {!siderFold ?
切换主题