From a5f52fb40daedf7dc6ec9252aec58d3cb76910b8 Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Tue, 16 Dec 2025 10:35:04 +0100 Subject: [PATCH] Dashboards: Fix links not wrapping (#115393) * Fix links not wrapping * also fix margin for links to dashboards --- .../features/dashboard-scene/scene/DashboardLinkRenderer.tsx | 1 - .../features/dashboard-scene/scene/DashboardLinksControls.tsx | 2 ++ .../dashboard/components/SubMenu/DashboardLinksDashboard.tsx | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard-scene/scene/DashboardLinkRenderer.tsx b/public/app/features/dashboard-scene/scene/DashboardLinkRenderer.tsx index d2571314782..92ea9aa473f 100644 --- a/public/app/features/dashboard-scene/scene/DashboardLinkRenderer.tsx +++ b/public/app/features/dashboard-scene/scene/DashboardLinkRenderer.tsx @@ -63,7 +63,6 @@ function getStyles(theme: GrafanaTheme2) { display: 'inline-flex', alignItems: 'center', verticalAlign: 'middle', - marginBottom: theme.spacing(1), }), }; } diff --git a/public/app/features/dashboard-scene/scene/DashboardLinksControls.tsx b/public/app/features/dashboard-scene/scene/DashboardLinksControls.tsx index 46fcf64d121..d95c54440c9 100644 --- a/public/app/features/dashboard-scene/scene/DashboardLinksControls.tsx +++ b/public/app/features/dashboard-scene/scene/DashboardLinksControls.tsx @@ -39,6 +39,8 @@ function getStyles(theme: GrafanaTheme2) { display: 'inline-flex', gap: theme.spacing(1), marginRight: theme.spacing(1), + marginBottom: theme.spacing(1), + flexWrap: 'wrap', }), }; } diff --git a/public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx b/public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx index ae5cffb9b31..f2d0d9e026f 100644 --- a/public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx +++ b/public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx @@ -181,7 +181,6 @@ function getStyles(theme: GrafanaTheme2) { display: 'inline-flex', alignItems: 'center', verticalAlign: 'middle', - marginBottom: theme.spacing(1), }), }; }