diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-26 16:49:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-26 16:49:45 -0700 |
commit | 8ab9102113667cd472da7cc34333425b4aa70aee (patch) | |
tree | 43fb502a09ab2bf8391e08a81334f601a895174d /modern/src/common/components | |
parent | d2af6d5f6b24928d63d7ce7152b4eab4ade7a5b0 (diff) | |
download | trackermap-web-8ab9102113667cd472da7cc34333425b4aa70aee.tar.gz trackermap-web-8ab9102113667cd472da7cc34333425b4aa70aee.tar.bz2 trackermap-web-8ab9102113667cd472da7cc34333425b4aa70aee.zip |
Improve toolbar back button
Diffstat (limited to 'modern/src/common/components')
-rw-r--r-- | modern/src/common/components/NavBar.js | 1 | ||||
-rw-r--r-- | modern/src/common/components/PageLayout.js | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/common/components/NavBar.js b/modern/src/common/components/NavBar.js index a1a73fdf..a53960fd 100644 --- a/modern/src/common/components/NavBar.js +++ b/modern/src/common/components/NavBar.js @@ -10,6 +10,7 @@ const Navbar = ({ setOpenDrawer, title }) => ( <IconButton color="inherit" edge="start" + sx={{ mr: 2 }} onClick={() => setOpenDrawer(true)} > <MenuIcon /> diff --git a/modern/src/common/components/PageLayout.js b/modern/src/common/components/PageLayout.js index 17567fb1..9d05b703 100644 --- a/modern/src/common/components/PageLayout.js +++ b/modern/src/common/components/PageLayout.js @@ -37,7 +37,6 @@ const useStyles = makeStyles((theme) => ({ content: { flexGrow: 1, alignItems: 'stretch', - overflow: 'auto', display: 'flex', flexDirection: 'column', }, @@ -81,7 +80,7 @@ const PageLayout = ({ menu, breadcrumbs, children }) => { > <div className={classes.toolbar}> <Toolbar> - <IconButton color="inherit" edge="start" onClick={() => navigate('/')}> + <IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => navigate('/')}> <ArrowBackIcon /> </IconButton> <PageTitle breadcrumbs={breadcrumbs} /> @@ -106,7 +105,7 @@ const PageLayout = ({ menu, breadcrumbs, children }) => { </Drawer> <AppBar position="static" color="inherit"> <Toolbar> - <IconButton color="inherit" edge="start" onClick={() => setOpenDrawer(true)}> + <IconButton color="inherit" edge="start" sx={{ mr: 2 }} onClick={() => setOpenDrawer(true)}> <MenuIcon /> </IconButton> <PageTitle breadcrumbs={breadcrumbs} /> |