Skip to content

Commit 5fe1e4a

Browse files
committed
set combobox to truncate
1 parent f21930a commit 5fe1e4a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/components/ui/combobox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ export const Combobox = <TValue,>({
175175
)}
176176
aria-expanded={open}
177177
>
178-
{renderValue()}{" "}
179-
<ChevronDownIcon className="ml-3 w-4 h-4 opacity-50" />
178+
<span className="truncate flex-1 min-w-0">{renderValue()}</span>
179+
<ChevronDownIcon className="ml-3 w-4 h-4 opacity-50 flex-shrink-0" />
180180
</div>
181181
</PopoverTrigger>
182182
<PopoverContent

frontend/src/plugins/impl/SearchableSelect.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export const SearchableSelect = (props: SearchableSelectProps): JSX.Element => {
105105
}}
106106
placeholder="Select..."
107107
multiple={false}
108-
className={cn("w-full", { "w-full": fullWidth })}
108+
className={cn({
109+
"w-full": fullWidth,
110+
})}
109111
value={value ?? NONE_KEY}
110112
onValueChange={handleValueChange}
111113
shouldFilter={false}

0 commit comments

Comments
 (0)