diff --git a/public/app/features/dashboard-scene/scene/DashboardControls.tsx b/public/app/features/dashboard-scene/scene/DashboardControls.tsx index be1ea0c844d..3b495c75ac4 100644 --- a/public/app/features/dashboard-scene/scene/DashboardControls.tsx +++ b/public/app/features/dashboard-scene/scene/DashboardControls.tsx @@ -147,10 +147,10 @@ function DashboardControlsRenderer({ model }: SceneComponentProps} {!hideTimeControls && ( - +
- +
)} @@ -191,6 +191,7 @@ function getStyles(theme: GrafanaTheme2) { }, }), controlsPanelEdit: css({ + flexWrap: 'wrap-reverse', // In panel edit we do not need any right padding as the splitter is providing it paddingRight: 0, }), @@ -198,5 +199,14 @@ function getStyles(theme: GrafanaTheme2) { background: 'unset', position: 'unset', }), + timeControls: css({ + display: 'flex', + justifyContent: 'flex-end', + gap: theme.spacing(1), + }), + timeControlsWrap: css({ + flexWrap: 'wrap', + marginLeft: 'auto', + }), }; }