fix: start with some printable containers

Signed-off-by: Maapteh <maarten@oudenniel.nl>
This commit is contained in:
Maapteh
2023-05-29 13:56:51 +02:00
parent 47c974e22b
commit c1f1eebe36
4 changed files with 15 additions and 0 deletions
@@ -33,6 +33,11 @@ const useStyles = makeStyles<BackstageTheme>(
[theme.breakpoints.down('xs')]: {
height: '100%',
},
'@media print': {
display: 'block',
height: 'auto',
overflowY: 'inherit',
},
},
}),
{ name: 'BackstagePage' },
@@ -63,6 +63,9 @@ const useStyles = makeStyles<BackstageTheme, { sidebarConfig: SidebarConfig }>(
'&::-webkit-scrollbar': {
display: 'none',
},
'@media print': {
display: 'none',
},
},
drawerWidth: props => ({
width: props.sidebarConfig.drawerWidthClosed,
@@ -72,6 +72,9 @@ const useStyles = makeStyles<BackstageTheme, { sidebarConfig: SidebarConfig }>(
zIndex: theme.zIndex.snackbar,
// SidebarDivider color
borderTop: '1px solid #383838',
'@media print': {
display: 'none',
},
},
overlay: props => ({
@@ -51,6 +51,10 @@ const useStyles = makeStyles<
[theme.breakpoints.down('xs')]: {
paddingBottom: props => props.sidebarConfig.mobileSidebarHeight,
},
'@media print': {
paddingLeft: '0px !important',
paddingBottom: '0px !important',
},
},
content: {
zIndex: 0,