Skip to content

Commit

Permalink
replace z-index with position relative
Browse files Browse the repository at this point in the history
  • Loading branch information
sahdoon committed Sep 28, 2023
1 parent ac6a3b7 commit 710493b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ export default function PersistentDrawerRight() {
</IconButton>
</Toolbar>
</AppBar>
<Main open={open}>
<Main
open={open}
sx={{
position: 'relative',
}}
>
<DrawerHeader />
<Typography paragraph>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
Expand Down Expand Up @@ -131,7 +136,6 @@ export default function PersistentDrawerRight() {
sx={{
width: drawerWidth,
flexShrink: 0,
zIndex: !open ? -10 : null,
'& .MuiDrawer-paper': {
width: drawerWidth,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ export default function PersistentDrawerRight() {
</IconButton>
</Toolbar>
</AppBar>
<Main open={open}>
<Main
open={open}
sx={{
position: 'relative',
}}
>
<DrawerHeader />
<Typography paragraph>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
Expand Down Expand Up @@ -135,7 +140,6 @@ export default function PersistentDrawerRight() {
sx={{
width: drawerWidth,
flexShrink: 0,
zIndex: !open ? -10 : null,
'& .MuiDrawer-paper': {
width: drawerWidth,
},
Expand Down

0 comments on commit 710493b

Please sign in to comment.