Improve mobile menu

This commit is contained in:
Piotr Rogowski 2022-07-17 22:53:27 +02:00
parent 0344804aa5
commit cd1e731b12
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
3 changed files with 8 additions and 6 deletions

View File

@ -107,11 +107,10 @@ const SideBar = ({ config, tune, ui, navigation, matchedPath }: SideBarProps) =>
key: `/${menuName}`,
icon: <Icon name={menuName} />,
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) {

View File

@ -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 {

View File

@ -21,3 +21,7 @@ reach-portal > div {
z-index: 1;
backdrop-filter: blur(3px);
}
.ant-menu-submenu-selected {
background-color: @primary-color;
}