Dashboard: New UX for switching layouts (#102268)

* Layout switching

* Update

* Update

* Update

* Update

* Update

* unline styles

* fixing lint issue
This commit is contained in:
Torkel Ödegaard
2025-03-17 13:50:34 +01:00
committed by GitHub
parent 2b3a36b572
commit 74705bd5b3
11 changed files with 291 additions and 73 deletions

View File

@ -61,6 +61,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
height: theme.spacing(2),
border: `1px solid ${theme.colors.border.medium}`,
borderRadius: theme.shape.radius.circle,
cursor: 'pointer',
margin: '3px 0' /* Space for box-shadow when focused */,
':checked': {
@ -100,6 +101,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
display: 'grid',
gridTemplateColumns: `${theme.spacing(2)} auto`,
gap: theme.spacing(1),
cursor: 'pointer',
}),
description: css({
fontSize: theme.typography.size.sm,