Fix appbar zindex

Appbar was clickable while a drawer was opened
This commit is contained in:
schroda
2024-09-09 21:37:07 +02:00
parent 65f21f17b1
commit e828e0f801
2 changed files with 10 additions and 2 deletions

View File

@@ -104,7 +104,15 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
);
return (
<Drawer variant="permanent" sx={{ width: navBarWidth }}>
<Drawer
variant="permanent"
sx={{
width: navBarWidth,
'& .MuiDrawer-paper': {
zIndex: (theme) => theme.zIndex.drawer - 1,
},
}}
>
<Box
ref={ref}
sx={{