Fix text wrapping in combobox

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 15:59:04 +00:00
parent 8b33a0d925
commit 0c8410c655

View File

@@ -55,10 +55,12 @@ export function Combobox({
variant="outline" variant="outline"
role="combobox" role="combobox"
aria-expanded={open} aria-expanded={open}
className={cn("w-full justify-between", className)} className={cn("w-full justify-between text-left", className)}
disabled={disabled} disabled={disabled}
> >
<span className="truncate">
{selectedOption ? selectedOption.label : placeholder} {selectedOption ? selectedOption.label : placeholder}
</span>
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" /> <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button> </Button>
</PopoverTrigger> </PopoverTrigger>