Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix misalignment in horizontal Schedule when "Custom" is selected (#74749)

Oleh K656c4e99c95f
diff --git a/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.tsx b/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.tsx
index 9f231980072..84fedb04128 100644
--- a/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.tsx
+++ b/frontend/src/metabase/common/components/CronExpressioInput/CronExpressionInput.tsx
@@ -57,8 +57,7 @@ export function CronExpressionInput({
};
return (
- <Flex direction="column" {...flexProps}>
- <CustomScheduleInputHint />
+ <Flex direction="column" gap="xs" {...flexProps}>
<TextInput
placeholder="For example 5 0 * Aug ?"
size="md"
@@ -79,6 +78,8 @@ export function CronExpressionInput({
getExplainMessage={getExplainMessage}
/>
)}
+
+ <CustomScheduleInputHint />
</Flex>
);
}
@@ -101,7 +102,7 @@ function CustomScheduleInputHint() {
>{t`quartz cron syntax`}</ExternalLink>
);
return (
- <Text>{jt`Our ${cronSyntaxDocsLink} is a string of 5 fields, starting from minutes, separated by spaces`}</Text>
+ <Text>{jt`Our ${cronSyntaxDocsLink} is a string of 5 fields, starting from minutes, separated by spaces.`}</Text>
);
}
diff --git a/frontend/src/metabase/common/components/Schedule/Schedule.module.css b/frontend/src/metabase/common/components/Schedule/Schedule.module.css
index 28c3f36a97d..97c7dabd9c9 100644
--- a/frontend/src/metabase/common/components/Schedule/Schedule.module.css
+++ b/frontend/src/metabase/common/components/Schedule/Schedule.module.css
@@ -38,7 +38,7 @@
.Horizontal {
display: flex;
flex-flow: row wrap;
- align-items: center;
+ align-items: flex-start;
gap: 0.25rem 0.5rem;
}