diff --git a/components/cron/CronEditor.tsx b/components/cron/CronEditor.tsx index 5213682..fe2da8c 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 ──────────────────────────────── */}
{/* Field editor panel */} -
+
{fields ? ( )}
+
- {/* Saved history */} + {/* Right: Expression bar + Schedule preview ───────────────────── */} +
+ {expressionBar} + +
+
+ + + Next Occurrences + +
+ +
+ + {/* Saved history */} {history.length > 0 && ( -
+
Saved @@ -346,24 +366,6 @@ export function CronEditor() { )}
- {/* Right: Expression bar + Schedule preview ───────────────────── */} -
- {expressionBar} - -
-
- - - Next Occurrences - -
- -
-
-
);