From 38827e5a16d97dd0cde1b10233dbe9c962354301 Mon Sep 17 00:00:00 2001 From: Nick Richmond <5732000+NWRichmond@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:05:41 -0400 Subject: [PATCH] ExploreMetrics: Keep gaps consistent between sticky elements (#94441) style: maintain gap between sticky elements while scrolling --- public/app/features/trails/MetricGraphScene.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/trails/MetricGraphScene.tsx b/public/app/features/trails/MetricGraphScene.tsx index 5e439480f71..69003e9edc5 100644 --- a/public/app/features/trails/MetricGraphScene.tsx +++ b/public/app/features/trails/MetricGraphScene.tsx @@ -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, }),