Skip to content

Commit 2b1a470

Browse files
committed
fix: make sure taxon label is not overflowing its container
1 parent a3f2034 commit 2b1a470

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/components/filtering/filters/taxon-filter.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ export const TaxonFilter = ({ value, onAdd, onClear }: FilterProps) => {
2828
variant="outline"
2929
role="combobox"
3030
aria-expanded={open}
31-
className="w-full justify-between px-4 text-muted-foreground font-normal"
31+
className="w-full justify-between px-4 text-muted-foreground font-normal overflow-hidden"
3232
>
3333
<>
34-
<span>{triggerLabel}</span>
34+
<span className="overflow-hidden text-ellipsis">
35+
{triggerLabel}
36+
</span>
3537
{isLoading && value ? (
3638
<Loader2Icon className="h-4 w-4 ml-2 animate-spin" />
3739
) : (

0 commit comments

Comments
 (0)