The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): usage project selector truncation (#38546)
kemal.earthf0ff1ada22d5
diff --git a/packages/ui/src/components/shadcn/ui/select.tsx b/packages/ui/src/components/shadcn/ui/select.tsxindex 8b519980d13..27663d3a8da 100644--- a/packages/ui/src/components/shadcn/ui/select.tsx+++ b/packages/ui/src/components/shadcn/ui/select.tsx@@ -50,6 +50,7 @@ const SelectTrigger = React.forwardRef<'flex w-full items-center justify-between rounded-md border border-strong hover:border-stronger bg-alternative dark:bg-muted hover:bg-selection text-xs ring-offset-background-control data-[placeholder]:text-foreground-lighter focus:outline-none ring-border-control focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200','data-[state=open]:bg-selection data-[state=open]:border-stronger','gap-2',+ '[&>span]:truncate [&>span]:w-[20ch] text-left', // [kemal] This is to prevent double lines rendering when a string is particularly long.SelectTriggerVariants({ size }),className)}@@ -57,7 +58,7 @@ const SelectTrigger = React.forwardRef<>{children}<SelectPrimitive.Icon asChild>- <ChevronDown className="h-4 w-4 text-foreground-lighter" strokeWidth={1.5} />+ <ChevronDown className="h-4 w-4 text-foreground-lighter flex-shrink-0" strokeWidth={1.5} /></SelectPrimitive.Icon></SelectPrimitive.Trigger>))