From c2b8e7fcd577492aeb16fbd28e0d278214916772 Mon Sep 17 00:00:00 2001 From: Develer Date: Fri, 5 Dec 2025 16:48:15 +0100 Subject: [PATCH] cleanup styles --- .../panel-edit/PanelDataPane/AddDataItemMenu.tsx | 2 +- .../panel-edit/PanelDataPane/QueryTransformCard.tsx | 2 +- .../panel-edit/PanelDataPane/QueryTransformList.tsx | 2 +- .../dashboard-scene/panel-edit/PanelOptionsPane.tsx | 11 +++++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/AddDataItemMenu.tsx b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/AddDataItemMenu.tsx index 045fd7e214c..f7fe603d8dd 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/AddDataItemMenu.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/AddDataItemMenu.tsx @@ -135,7 +135,7 @@ export const AddDataItemMenu = memo( const getStyles = (theme: GrafanaTheme2) => ({ textButton: css({ - paddingLeft: 0, + paddingLeft: theme.spacing(1), fontFamily: theme.typography.fontFamilyMonospace, }), queryLibraryMenuItem: css({ diff --git a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx index 96875b5da1d..e3009f90ad3 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelDataPane/QueryTransformCard.tsx @@ -313,7 +313,7 @@ const getStyles = (theme: GrafanaTheme2, colors: ReturnType - + {/* Data Sources Section (Queries + Expressions) */} {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions */} diff --git a/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx b/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx index 3f54971f99d..02d780fe88b 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx @@ -158,7 +158,7 @@ function PanelOptionsPaneComponent({ model }: SceneComponentProps +
{!isVizPickerOpen && ( <>
@@ -235,12 +235,19 @@ function PanelOptionsPaneComponent({ model }: SceneComponentProps )} - +
); } function getStyles(theme: GrafanaTheme2) { return { + wrapper: css({ + display: 'contents', + '& h6': { + fontFamily: theme.typography.fontFamilyMonospace, + textTransform: 'uppercase', + }, + }), top: css({ display: 'flex', flexDirection: 'row',