Compare commits

...

5 Commits

Author SHA1 Message Date
Oscar Kilhed 4f55f483e6 Merge branch 'main' into oscark/fix-link-overflowing-on-small-viewport 2025-12-15 15:51:40 +01:00
oscarkilhed 130d33fdf1 Merge branch 'main' into oscark/fix-link-overflowing-on-small-viewport 2025-12-09 12:38:42 +01:00
oscarkilhed 7b4854f8af fix margin to rest of the dashboard 2025-12-09 12:38:31 +01:00
oscarkilhed f0064e03c9 reset eslint-supressions.json 2025-12-08 11:26:14 +01:00
oscarkilhed 80f8c4cc10 Stop text overflowing on small viewports 2025-12-08 11:21:47 +01:00
2 changed files with 7 additions and 0 deletions
@@ -254,6 +254,7 @@ function getStyles(theme: GrafanaTheme2) {
opacity: 1,
filter: 'unset',
},
display: 'inline-block',
}),
controlsPanelEdit: css({
flexWrap: 'wrap-reverse',
@@ -45,6 +45,7 @@ export function DashboardLinkRenderer({ link, dashboardUID, inMenu }: Props) {
target={link.targetBlank ? '_blank' : undefined}
rel="noreferrer"
data-testid={selectors.components.DashboardLinks.link}
className={styles.linkButton}
>
{linkInfo.title}
</DashboardLinkButton>
@@ -64,6 +65,11 @@ function getStyles(theme: GrafanaTheme2) {
alignItems: 'center',
verticalAlign: 'middle',
marginBottom: theme.spacing(1),
marginRight: theme.spacing(1),
maxWidth: '100%',
}),
linkButton: css({
maxWidth: '100%',
}),
};
}