From 131f42d59a2b151dbe25e1cedd022342e5021438 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 2 Jun 2022 11:03:05 -0400 Subject: [PATCH] [v9.0.x] Alerting: Fix alert creation form layout when errors occur (#50106) Co-authored-by: Gilles De Mey --- .../alerting/unified/components/rule-editor/DetailsStep.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/DetailsStep.tsx b/public/app/features/alerting/unified/components/rule-editor/DetailsStep.tsx index 0462b64845f..5cefd9b21f5 100644 --- a/public/app/features/alerting/unified/components/rule-editor/DetailsStep.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/DetailsStep.tsx @@ -1,4 +1,5 @@ import { css } from '@emotion/css'; +import classNames from 'classnames'; import React, { FC } from 'react'; import { useFormContext } from 'react-hook-form'; @@ -75,7 +76,7 @@ export const DetailsStep: FC = () => { dataSourceName && } {ruleFormType === RuleFormType.grafana && ( -
+
@@ -137,6 +138,9 @@ export const DetailsStep: FC = () => { }; const getStyles = (theme: GrafanaTheme2) => ({ + alignBaseline: css` + align-items: baseline; + `, formInput: css` width: 330px; & + & {