PublicDashboards: Fix public dashboards when publicDashboardsScene is enabled (#92187)

* fix public dashboards pages when publicDashboardsScene is enabled

* properly handle react-grid-layout at small screen sizes

* use unset instead of auto
This commit is contained in:
Ashley Harrison 2024-08-21 16:16:12 +01:00 committed by GitHub
parent a04d2f44f8
commit e675455502
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,9 @@ export function getDashboardGridStyles(theme: GrafanaTheme2) {
}, },
[theme.breakpoints.down('md')]: { [theme.breakpoints.down('md')]: {
'.react-grid-layout': {
height: 'unset !important',
},
'.react-grid-item': { '.react-grid-item': {
display: 'block !important', display: 'block !important',
transitionProperty: 'none !important', transitionProperty: 'none !important',

View File

@ -147,7 +147,9 @@ function getStyles(theme: GrafanaTheme2) {
}), }),
body: css({ body: css({
label: 'body', label: 'body',
display: 'flex',
flex: 1, flex: 1,
flexDirection: 'column',
overflowY: 'auto', overflowY: 'auto',
}), }),
}; };