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',
|
position: 'fixed',
|
||||||
marginLeft: actualNavBarWidth,
|
marginLeft: actualNavBarWidth,
|
||||||
width: `calc(100% - ${actualNavBarWidth}px)`,
|
width: `calc(100% - ${actualNavBarWidth}px)`,
|
||||||
zIndex: theme.zIndex.drawer + 1,
|
zIndex: theme.zIndex.drawer,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toolbar sx={{ position: 'relative' }}>
|
<Toolbar sx={{ position: 'relative' }}>
|
||||||
|
|||||||
@@ -104,7 +104,15 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) =
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Drawer variant="permanent" sx={{ width: navBarWidth }}>
|
<Drawer
|
||||||
|
variant="permanent"
|
||||||
|
sx={{
|
||||||
|
width: navBarWidth,
|
||||||
|
'& .MuiDrawer-paper': {
|
||||||
|
zIndex: (theme) => theme.zIndex.drawer - 1,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Box
|
<Box
|
||||||
ref={ref}
|
ref={ref}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in New Issue
Block a user