Page: Remove bottom page margin (#65082)

* Remove page margin

* Only remove bottom margin

* revert other changes

* revert another change
This commit is contained in:
Torkel Ödegaard
2023-04-04 16:00:41 +02:00
committed by GitHub
parent 44beef2e41
commit 42be20cbf3
3 changed files with 4 additions and 4 deletions

View File

@@ -104,6 +104,7 @@ const getStyles = (theme: GrafanaTheme2) => {
boxShadow: shadow, boxShadow: shadow,
background: theme.colors.background.primary, background: theme.colors.background.primary,
flexDirection: 'column', flexDirection: 'column',
borderBottom: `1px solid ${theme.colors.border.weak}`,
}), }),
}; };
}; };

View File

@@ -131,17 +131,15 @@ const getStyles = (theme: GrafanaTheme2) => {
padding: theme.spacing(2), padding: theme.spacing(2),
borderRadius: theme.shape.borderRadius(1), borderRadius: theme.shape.borderRadius(1),
border: `1px solid ${theme.colors.border.weak}`, border: `1px solid ${theme.colors.border.weak}`,
borderBottom: 'none',
background: theme.colors.background.primary, background: theme.colors.background.primary,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
flexGrow: 1, flexGrow: 1,
margin: theme.spacing(0, 0, 0, 0), margin: theme.spacing(0, 0, 0, 0),
[theme.breakpoints.up('sm')]: {
margin: theme.spacing(0, 1, 1, 1),
},
[theme.breakpoints.up('md')]: { [theme.breakpoints.up('md')]: {
margin: theme.spacing(2, 2, 2, 1), margin: theme.spacing(2, 2, 0, 1),
padding: theme.spacing(3), padding: theme.spacing(3),
}, },
}), }),

View File

@@ -100,6 +100,7 @@ const getStyles = (theme: GrafanaTheme2) => {
flexDirection: 'column', flexDirection: 'column',
padding: theme.spacing(2, 1, 2, 2), padding: theme.spacing(2, 1, 2, 2),
minWidth: '250px', minWidth: '250px',
[theme.breakpoints.up('md')]: { [theme.breakpoints.up('md')]: {
padding: theme.spacing(4.5, 1, 2, 2), padding: theme.spacing(4.5, 1, 2, 2),
}, },