Skip to content

Open source CapCut alternative.

TypeScript

fix(site): truncate select item labels under the check indicator

David Led1932e633082
diff --git a/site/src/components/ui/select.tsx b/site/src/components/ui/select.tsx
index e8021f5f..ea30e6ce 100644
--- a/site/src/components/ui/select.tsx
+++ b/site/src/components/ui/select.tsx
@@ -122,7 +122,7 @@ function SelectItem({
)}
{...props}
>
- <SelectPrimitive.ItemText className="flex flex-1 shrink-0 gap-2 whitespace-nowrap">
+ <SelectPrimitive.ItemText className="block min-w-0 flex-1 truncate">
{children}
</SelectPrimitive.ItemText>
<SelectPrimitive.ItemIndicator