Add padding to SidebarPage to avoid MobileSidebar overlapping content

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-11-11 18:33:08 +01:00
parent e3ca78b5a6
commit 882adc942e
2 changed files with 4 additions and 2 deletions
@@ -27,7 +27,7 @@ const useStyles = makeStyles<BackstageTheme>(() => ({
"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",
gridTemplateRows: 'max-content auto 1fr',
gridTemplateColumns: 'auto 1fr auto',
height: '100vh',
height: '100%',
overflowY: 'auto',
},
}));
@@ -31,7 +31,6 @@ const useStyles = makeStyles<BackstageTheme, { isPinned: boolean }>(
theme => ({
root: {
width: '100%',
minHeight: '100%',
transition: 'padding-left 0.1s ease-out',
[theme.breakpoints.up('sm')]: {
paddingLeft: ({ isPinned }) =>
@@ -39,6 +38,9 @@ const useStyles = makeStyles<BackstageTheme, { isPinned: boolean }>(
? sidebarConfig.drawerWidthOpen
: sidebarConfig.drawerWidthClosed,
},
[theme.breakpoints.down('xs')]: {
paddingBottom: sidebarConfig.mobileSidebarHeight,
},
},
}),
{ name: 'BackstageSidebarPage' },