Skip to content

Commit

Permalink
Sidebar width on lg screens and edge issues
Browse files Browse the repository at this point in the history
Signed-off-by: Courtney Gosselin <[email protected]>
  • Loading branch information
CourtneyGosselin committed Dec 11, 2024
1 parent 54f3038 commit 6a62a38
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/layout/MainLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,7 @@ const Root = styled('div')(({ theme, leftDrawerOpened }) => ({
}),
marginLeft: 0,
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
[theme.breakpoints.down('lg')]: {
marginLeft: '20px'
// marginLeft: -(drawerWidth - 20)
},
[theme.breakpoints.down('md')]: {
marginLeft: '20px'
// marginLeft: -(drawerWidth - 10)
}
borderBottomRightRadius: 0
},
[`& .${classes.footer}`]: {
backgroundColor: theme.palette.background.default,
Expand All @@ -105,7 +97,7 @@ const Root = styled('div')(({ theme, leftDrawerOpened }) => ({

function MainLayout() {
const theme = useTheme();
const matchDownMd = useMediaQuery(theme.breakpoints.down('lg'));
const matchDownMd = useMediaQuery(theme.breakpoints.down('md'));

// Handle left drawer
const [sidebarContent, setSidebarContent] = useState(null);
Expand Down

0 comments on commit 6a62a38

Please sign in to comment.