Skip to content

Commit e5bf7ba

Browse files
committed
fix(emcn): ChipSelect trigger hugs its content (w-fit)
In a stacked form layout the trigger was stretched by align-items: stretch, leaving an empty gap to the right of the value. Add w-fit so the chip sizes to its content (a compact pill) everywhere; fullWidth form selects are unaffected.
1 parent fe770ee commit e5bf7ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/components/emcn/components/chip-select/chip-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function ChipSelect({
212212
aria-label={ariaLabel}
213213
className={cn(
214214
chipVariants({ variant: 'filled', flush: true, fullWidth }),
215-
fullWidth ? 'w-full justify-between' : 'max-w-[240px]',
215+
fullWidth ? 'w-full justify-between' : 'w-fit max-w-[240px]',
216216
className
217217
)}
218218
>

0 commit comments

Comments
 (0)