Fix appbar zindex
Appbar was clickable while a drawer was opened
This commit is contained in:
@@ -125,7 +125,7 @@ export function DefaultNavBar() {
|
||||
position: 'fixed',
|
||||
marginLeft: actualNavBarWidth,
|
||||
width: `calc(100% - ${actualNavBarWidth}px)`,
|
||||
zIndex: theme.zIndex.drawer + 1,
|
||||
zIndex: theme.zIndex.drawer,
|
||||
}}
|
||||
>
|
||||
<Toolbar sx={{ position: 'relative' }}>
|
||||
|
||||
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user