Skip to content

Commit

Permalink
Optimize drawer width to reduce wasted space in reports and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardus committed Nov 10, 2024
1 parent 62f6da1 commit 2a54337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/components/PageLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const useStyles = makeStyles((theme) => ({
flexDirection: 'column',
},
desktopDrawer: {
width: theme.dimensions.drawerWidthDesktop,
maxWidth: theme.dimensions.drawerWidthDesktop,
position: 'relative !important',
},
mobileDrawer: {
width: theme.dimensions.drawerWidthTablet,
Expand Down
2 changes: 1 addition & 1 deletion src/other/GeofencesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const useStyles = makeStyles((theme) => ({
display: 'flex',
flexDirection: 'column',
[theme.breakpoints.up('sm')]: {
width: theme.dimensions.drawerWidthDesktop,
maxWidth: theme.dimensions.drawerWidthDesktop,
},
[theme.breakpoints.down('sm')]: {
height: theme.dimensions.drawerHeightPhone,
Expand Down

0 comments on commit 2a54337

Please sign in to comment.