DataTrails: Sticky controls (#83286)

* DataTrails: Sticky controls

* Update
This commit is contained in:
Torkel Ödegaard 2024-02-23 16:22:34 +01:00 committed by GitHub
parent 49e18a3e7a
commit ea8b3267e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -235,13 +235,17 @@ function getStyles(theme: GrafanaTheme2) {
flexGrow: 1, flexGrow: 1,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
gap: theme.spacing(1),
}), }),
controls: css({ controls: css({
display: 'flex', display: 'flex',
gap: theme.spacing(1), gap: theme.spacing(1),
padding: theme.spacing(1, 0),
alignItems: 'flex-end', alignItems: 'flex-end',
flexWrap: 'wrap', flexWrap: 'wrap',
position: 'sticky',
background: theme.isDark ? theme.colors.background.canvas : theme.colors.background.primary,
zIndex: theme.zIndex.activePanel + 1,
top: 0,
}), }),
}; };
} }