diff --git a/src/components/layout/main.less b/src/components/layout/main.less index dd505f5..2d5a23a 100644 --- a/src/components/layout/main.less +++ b/src/components/layout/main.less @@ -107,18 +107,6 @@ } } - .siderMenu { - position: absolute; - width: 100%; - max-height: ~"calc(100% - 88px)"; - overflow-y: scroll; - overflow-x: hidden; - - &::-webkit-scrollbar-thumb { - display: none; - } - } - .switchtheme { width: 100%; position: absolute; @@ -157,7 +145,7 @@ .ant-menu-item, .ant-menu-submenu-title { - overflow: hidden; + overflow: auto; white-space: normal; } } diff --git a/src/components/layout/menu.js b/src/components/layout/menu.js index 5388654..9344ccd 100644 --- a/src/components/layout/menu.js +++ b/src/components/layout/menu.js @@ -26,11 +26,10 @@ const getMenus = function (menuArray, siderFold, parentPath) { }) } -function Menus ({ siderFold, darkTheme, location, isNavbar, handleClickNavMenu, className }) { +function Menus ({ siderFold, darkTheme, location, isNavbar, handleClickNavMenu }) { const menuItems = getMenus(menu, siderFold) return (
{siderFold ? '' : {config.logoText}} -