@@ -152,15 +152,15 @@ export function StyleInputRow({
152152 return (
153153 < div
154154 className = { cn (
155- 'relative rounded-lg border border-border/50 bg-muted/20 px-3 py-2.5' ,
155+ 'relative min-w-0 rounded-lg border border-border/50 bg-muted/20 px-3 py-2.5' ,
156156 isStacked ? 'flex flex-col gap-2' : 'flex items-center justify-between gap-2.5' ,
157157 ) }
158158 >
159159 { onClear && normalizedValue . trim ( ) !== '' ? < ClearValueButton onClick = { onClear } label = { `Clear ${ label } ` } /> : null }
160- < label className = { cn ( 'text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground' , isStacked ? 'pr-6' : 'pr-6' ) } >
160+ < label className = { cn ( 'min-w-0 text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground' , isStacked ? 'pr-6' : 'max-w-[45%] flex-1 pr-6' ) } >
161161 { label }
162162 </ label >
163- < div className = { cn ( isStacked ? 'relative w-full pr-4' : 'relative w-32 shrink-0 pr-4' , containerClassName ) } >
163+ < div className = { cn ( isStacked ? 'relative w-full min-w-0 pr-4' : 'relative min-w-0 max-w-[55%] flex-1 pr-4' , containerClassName ) } >
164164 < input
165165 type = { type }
166166 value = { normalizedValue }
@@ -216,13 +216,13 @@ export function StyleSelectRow({
216216 const normalizedValue = normalizeStyleValue ( value ) ;
217217
218218 return (
219- < div className = "relative flex items-center justify-between gap-2.5 rounded-lg border border-border/50 bg-muted/20 px-3 py-2.5" >
219+ < div className = "relative flex min-w-0 items-center justify-between gap-2.5 rounded-lg border border-border/50 bg-muted/20 px-3 py-2.5" >
220220 { onClear && normalizedValue . trim ( ) !== '' ? < ClearValueButton onClick = { onClear } label = { `Clear ${ label } ` } /> : null }
221- < label className = "pr-6 text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground" > { label } </ label >
221+ < label className = "min-w-0 max-w-[45%] flex-1 pr-6 text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground" > { label } </ label >
222222 < select
223223 value = { normalizedValue }
224224 onChange = { ( event ) => onChange ( event . target . value ) }
225- className = "h-7 w-32 rounded-md border border-border/60 bg-background px-2.5 pr-7 text-[12px] outline-none transition-colors focus:border-primary/50 focus:ring-1 focus:ring-primary/15"
225+ className = "h-7 min-w-0 max-w-[55%] flex-1 rounded-md border border-border/60 bg-background px-2.5 pr-7 text-[12px] outline-none transition-colors focus:border-primary/50 focus:ring-1 focus:ring-primary/15"
226226 >
227227 { options . map ( ( option ) => (
228228 < option key = { option . value || 'default' } value = { option . value } >
0 commit comments