ExploreMetrics: Keep gaps consistent between sticky elements (#94441)
style: maintain gap between sticky elements while scrolling
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user