From 33a5857ad447906aaf52cad6c2fec50eadfcc62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 4 Mar 2026 11:41:05 +0100 Subject: [PATCH] fix: cron layout --- components/cron/CronEditor.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/cron/CronEditor.tsx b/components/cron/CronEditor.tsx index 5213682..80e92c4 100644 --- a/components/cron/CronEditor.tsx +++ b/components/cron/CronEditor.tsx @@ -123,7 +123,7 @@ export function CronEditor() { const fields = useMemo(() => splitCronFields(expression), [expression]); const description = useMemo(() => describeCronExpression(expression), [expression]); const schedule = useMemo( - () => (isValid ? getNextOccurrences(expression, 10) : []), + () => (isValid ? getNextOccurrences(expression, 7) : []), [expression, isValid], ); @@ -257,17 +257,19 @@ export function CronEditor() { ); return ( -
+
- {/* ── Mobile tabs ─────────────────────────────────────────────────── */} setMobileTab(v as 'editor' | 'preview')} /> - {/* ── Main content ────────────────────────────────────────────────── */} -
+ {/* Main layout — side-by-side on lg, tabbed on mobile */} +
{/* Left: Field editor + Presets ──────────────────────────────── */}