diff --git a/src/components/Tune/SideBar.tsx b/src/components/Tune/SideBar.tsx index 53f6892..b9a0f32 100644 --- a/src/components/Tune/SideBar.tsx +++ b/src/components/Tune/SideBar.tsx @@ -107,11 +107,10 @@ const SideBar = ({ config, tune, ui, navigation, matchedPath }: SideBarProps) => key: `/${menuName}`, icon: , label: types[menuName].title, - onClick: () => ui.sidebarCollapsed && store.dispatch({ type: 'ui/sidebarCollapsed', payload: false }), children: subMenuItems, }; }) - ), [navigate, navigation.tuneId, ui.sidebarCollapsed]); + ), [navigate, navigation.tuneId]); useEffect(() => { if (tune && config && Object.keys(tune.constants).length) { diff --git a/src/css/App.less b/src/css/App.less index 3ef0555..2bf1c10 100644 --- a/src/css/App.less +++ b/src/css/App.less @@ -45,16 +45,15 @@ html, body { } .app-sidebar { - height: calc(100vh - @layout-header-height - @layout-footer-height); + height: calc(95vh - @layout-header-height - @layout-footer-height); position: fixed; left: 0; user-select: none; } .app-content { - height: calc(100vh - @layout-header-height - @layout-footer-height); - overflow-y: auto; - overflow-x: hidden; + height: calc(95vh - @layout-header-height - @layout-footer-height); + overflow: auto; } .ant-tabs-tabpane { diff --git a/src/css/overrides.less b/src/css/overrides.less index 3a3b080..49a3711 100644 --- a/src/css/overrides.less +++ b/src/css/overrides.less @@ -21,3 +21,7 @@ reach-portal > div { z-index: 1; backdrop-filter: blur(3px); } + +.ant-menu-submenu-selected { + background-color: @primary-color; +}