From 18f8f2324abc340c723bcead944b6d70371c5074 Mon Sep 17 00:00:00 2001 From: Nick Richmond <5732000+NWRichmond@users.noreply.github.com> Date: Mon, 13 May 2024 12:51:32 -0400 Subject: [PATCH] Graphite: Fix alignment of elements in the query editor (#87662) style: ensure elements in query builder rows are aligned --- .../graphite/components/AddGraphiteFunction.tsx | 16 ++++++++++------ .../graphite/components/MetricsSection.tsx | 4 ++-- .../graphite/components/TagsSection.tsx | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/public/app/plugins/datasource/graphite/components/AddGraphiteFunction.tsx b/public/app/plugins/datasource/graphite/components/AddGraphiteFunction.tsx index 1689697b554..406d130e946 100644 --- a/public/app/plugins/datasource/graphite/components/AddGraphiteFunction.tsx +++ b/public/app/plugins/datasource/graphite/components/AddGraphiteFunction.tsx @@ -35,12 +35,16 @@ export function AddGraphiteFunction({ funcDefs }: Props) { }, [value, dispatch]); return ( - } - options={options} - onChange={setValue} - inputMinWidth={150} - /> +
+ + } + options={options} + onChange={setValue} + inputMinWidth={150} + /> +
); } diff --git a/public/app/plugins/datasource/graphite/components/MetricsSection.tsx b/public/app/plugins/datasource/graphite/components/MetricsSection.tsx index 28887f26a25..b4075036cdf 100644 --- a/public/app/plugins/datasource/graphite/components/MetricsSection.tsx +++ b/public/app/plugins/datasource/graphite/components/MetricsSection.tsx @@ -12,10 +12,10 @@ type Props = { export function MetricsSection({ segments = [], state }: Props) { return ( - <> +
{segments.map((segment, index) => { return ; })} - +
); } diff --git a/public/app/plugins/datasource/graphite/components/TagsSection.tsx b/public/app/plugins/datasource/graphite/components/TagsSection.tsx index 6c29e212257..3e1160b07e5 100644 --- a/public/app/plugins/datasource/graphite/components/TagsSection.tsx +++ b/public/app/plugins/datasource/graphite/components/TagsSection.tsx @@ -44,7 +44,7 @@ export function TagsSection({ tags, state }: Props) { ); return ( - <> +
{tags.map((tag, index) => { return ; })} @@ -60,7 +60,7 @@ export function TagsSection({ tags, state }: Props) { /> )} {state.paused && } - +
); }