aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-26 17:05:14 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-26 17:05:14 -0700
commit9e0e45c495f5db70f29c05d8a6ff8e9166cbf318 (patch)
treeef66df31d48336c1f4a4754339608f4fb3d89d59 /modern/src/common
parent8ab9102113667cd472da7cc34333425b4aa70aee (diff)
downloadtrackermap-web-9e0e45c495f5db70f29c05d8a6ff8e9166cbf318.tar.gz
trackermap-web-9e0e45c495f5db70f29c05d8a6ff8e9166cbf318.tar.bz2
trackermap-web-9e0e45c495f5db70f29c05d8a6ff8e9166cbf318.zip
Improve page layout
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/components/PageLayout.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/modern/src/common/components/PageLayout.js b/modern/src/common/components/PageLayout.js
index 9d05b703..43fd68ea 100644
--- a/modern/src/common/components/PageLayout.js
+++ b/modern/src/common/components/PageLayout.js
@@ -33,7 +33,10 @@ const useStyles = makeStyles((theme) => ({
mobileDrawer: {
width: theme.dimensions.drawerWidthTablet,
},
- toolbar: theme.mixins.toolbar,
+ desktopToolbar: theme.mixins.toolbar,
+ mobileToolbar: {
+ zIndex: 1,
+ },
content: {
flexGrow: 1,
alignItems: 'stretch',
@@ -103,7 +106,7 @@ const PageLayout = ({ menu, breadcrumbs, children }) => {
>
{menu}
</Drawer>
- <AppBar position="static" color="inherit">
+ <AppBar className={classes.mobileToolbar} position="static" color="inherit">
<Toolbar>
<IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => setOpenDrawer(true)}>
<MenuIcon />