Alerting: Fix alert creation form layout when errors occur (#50084)

pull/49698/head^2
Gilles De Mey 3 years ago committed by GitHub
parent 896a101f48
commit 51dcac4c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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 && <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;
& + & {

Loading…
Cancel
Save