From fff727a632793c3988b67bd5a45e52d2635757c0 Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Thu, 4 Dec 2025 13:08:51 +0000 Subject: [PATCH] Limit frame header width --- .../explore-map/components/ExploreMapFrame.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/public/app/features/explore-map/components/ExploreMapFrame.tsx b/public/app/features/explore-map/components/ExploreMapFrame.tsx index e50aa4b6cc7..ccf46de0c3d 100644 --- a/public/app/features/explore-map/components/ExploreMapFrame.tsx +++ b/public/app/features/explore-map/components/ExploreMapFrame.tsx @@ -499,6 +499,7 @@ function ExploreMapFrameComponent({ frame }: ExploreMapFrameProps) {
({ position: 'absolute', top: '-30px', left: '0', + width: '100%', + maxWidth: '100%', + overflow: 'hidden', + minWidth: 0, padding: theme.spacing(0.5, 1), backgroundColor: theme.colors.background.secondary, border: `1px solid ${theme.colors.border.strong}`, @@ -703,7 +708,11 @@ const getStyles = (theme: GrafanaTheme2) => ({ frameTitle: css({ fontSize: theme.typography.body.fontSize, fontWeight: theme.typography.fontWeightMedium, - minWidth: '100px', + flex: '1 1 auto', + minWidth: 0, + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', }), frameTitleInput: css({ fontSize: theme.typography.body.fontSize, @@ -713,7 +722,8 @@ const getStyles = (theme: GrafanaTheme2) => ({ outline: `2px solid ${theme.colors.primary.border}`, backgroundColor: theme.colors.background.primary, borderRadius: theme.shape.radius.default, - minWidth: '100px', + flex: '1 1 auto', + minWidth: 0, }), colorButton: css({ width: '24px',