[v9.0.x] Alerting: Fix alert creation form layout when errors occur (#50106)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-02 17:03:05 +02:00
committed by GitHub
co-authored by Gilles De Mey
parent 3e7a2111e6
commit 131f42d59a
@@ -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 && <GroupAndNamespaceFields rulesSourceName={dataSourceName} />}
{ruleFormType === RuleFormType.grafana && (
<div className={styles.flexRow}>
<div className={classNames([styles.flexRow, styles.alignBaseline])}>
<Field
label={
<Label htmlFor="folder" description={'Select a folder to store your rule.'}>
@@ -137,6 +138,9 @@ export const DetailsStep: FC = () => {
};
const getStyles = (theme: GrafanaTheme2) => ({
alignBaseline: css`
align-items: baseline;
`,
formInput: css`
width: 330px;
& + & {