DashboardScene: Fixes panel editor padding (#84426)

This commit is contained in:
Torkel Ödegaard 2024-03-14 10:37:26 +01:00 committed by GitHub
parent 0c472ff00d
commit 5d23bc48b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -81,7 +81,7 @@ function VizAndDataPane({ model }: SceneComponentProps<PanelEditor>) {
return (
<>
{controls && <controls.Component model={controls} />}
<div className={styles.controlsWrapper}>{controls && <controls.Component model={controls} />}</div>
<div {...containerProps}>
<div {...primaryProps}>
<vizManager.Component model={vizManager} />
@ -144,7 +144,6 @@ function getStyles(theme: GrafanaTheme2) {
display: 'flex',
flexDirection: 'column',
minHeight: 0,
gap: '8px',
}),
optionsPane: css({
flexDirection: 'column',
@ -169,6 +168,12 @@ function getStyles(theme: GrafanaTheme2) {
rotate180: css({
rotate: '180deg',
}),
controlsWrapper: css({
display: 'flex',
flexDirection: 'column',
flexGrow: 0,
paddingLeft: theme.spacing(2),
}),
openDataPaneButton: css({
width: theme.spacing(8),
justifyContent: 'center',