ExploreMetrics: Keep gaps consistent between sticky elements (#94441)

style: maintain gap between sticky elements while scrolling
This commit is contained in:
Nick Richmond 2024-10-09 10:05:41 -04:00 committed by GitHub
parent 97a90591ca
commit 38827e5a16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,8 @@ function getStyles(theme: GrafanaTheme2, chromeHeaderHeight: number) {
flexDirection: 'row',
background: theme.isLight ? theme.colors.background.primary : theme.colors.background.canvas,
position: 'sticky',
paddingTop: theme.spacing(1),
marginTop: `-${theme.spacing(1)}`,
top: `${chromeHeaderHeight + 70}px`,
zIndex: 10,
}),