@@ -436,7 +435,9 @@ export default function SettingsSubmit({ mode = "create", submissionId, initialV
render={(i) => {
const autoRotate = !!useWatch({ control, name: `fill_settings.${i}.auto` });
return (
-
+ <>
+ {/* Base fields */}
+
@@ -446,14 +447,23 @@ export default function SettingsSubmit({ mode = "create", submissionId, initialV
+
+
+ {/* Auto rotate row */}
+
{autoRotate && (
)}
+
+
+ {/* Simple toggles row */}
+
+ >
);
}}
/>
@@ -468,29 +478,36 @@ export default function SettingsSubmit({ mode = "create", submissionId, initialV
const perf = !!useWatch({ control, name: `line_settings.${i}.perf` });
const wobble = !!useWatch({ control, name: `line_settings.${i}.wobble` });
return (
-
+ <>
+ {/* Base fields */}
+
+
+
+ {/* Perforation row */}
+
- {perf && (
- <>
-
-
- >
- )}
+ {perf && }
+ {perf && }
+
+
+ {/* Wobble row */}
+
- {wobble && (
- <>
-
-
- >
- )}
+ {wobble && }
+ {wobble && }
+
+
+ {/* Simple toggle */}
+
+ >
);
}}
/>
@@ -505,7 +522,9 @@ export default function SettingsSubmit({ mode = "create", submissionId, initialV
const ditherVal = useWatch({ control, name: `raster_settings.${i}.dither` }) || "";
const isHalftone = ditherVal === "halftone";
return (
-
+ <>
+ {/* Base fields */}
+
@@ -513,19 +532,27 @@ export default function SettingsSubmit({ mode = "create", submissionId, initialV
+
+ {/* allow two decimals */}
+
+
+
+
+ {/* Halftone row */}
{isHalftone && (
- <>
+
- >
+
)}
-
-
-
+
+ {/* Simple toggles row */}
+
+ >
);
}}
/>
@@ -594,9 +621,9 @@ function Repeater({ title, fields, onAdd, onRemove, render }: any) {
{fields.map((_: any, i: number) => (
-