+ // Reflow on the container (a @container/chunkfields ancestor), not the
+ // viewport. Below 552px the fields stack one per row, each capped at
+ // max-w-[288px] so the input reads as a form field, not a full-bleed bar.
+ // At/above 552px this restores flex-1 with no cap, so three columns resolve
+ // to (container - gaps)/3 — pixel-identical to the stock flex-1 layout.
+
{props.label}
{props.children}
@@ -142,7 +148,10 @@ function CompoundNumberInput({
{...inputProps}
aria-label={label}
size={size}
- className={className}
+ // min-w-[64px] overrides the component's default min-w-0 so the input
+ // can never collapse to an unusable sliver, even in an unforeseen
+ // container; belt to the row's flex-wrap braces.
+ className={cn('min-w-[64px]', className)}
onBlur={onBlur}
/>
{Boolean(unit) &&
{unit}}