Alerting: fix alert creation interval layout bug (#48112) (#48113)

(cherry picked from commit 2713de2bd1)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-22 14:50:28 +02:00
committed by GitHub
co-authored by Gilles De Mey
parent 7202de467b
commit 06ea4793bc
@@ -57,7 +57,10 @@ export const GrafanaConditionsStep: FC = () => {
return ( return (
<RuleEditorSection stepNo={3} title="Define alert conditions"> <RuleEditorSection stepNo={3} title="Define alert conditions">
<ConditionField /> <ConditionField />
<Field label="Evaluate"> <Field
label="Evaluate"
description="Evaluation interval applies to every rule within a group. It can overwrite the interval of an existing alert rule."
>
<div className={styles.flexRow}> <div className={styles.flexRow}>
<InlineLabel <InlineLabel
htmlFor={evaluateEveryId} htmlFor={evaluateEveryId}
@@ -66,12 +69,7 @@ export const GrafanaConditionsStep: FC = () => {
> >
Evaluate every Evaluate every
</InlineLabel> </InlineLabel>
<Field <Input id={evaluateEveryId} width={8} {...register('evaluateEvery', evaluateEveryValidationOptions)} />
label="Evaluate"
description="Evaluation internal applies to every rule within a group. It can overwrite the interval of an existing alert rule."
>
<Input id={evaluateEveryId} width={8} {...register('evaluateEvery', evaluateEveryValidationOptions)} />
</Field>
<InlineLabel <InlineLabel
htmlFor={evaluateForId} htmlFor={evaluateForId}
width={7} width={7}