The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add title prop to span in product menu item compoennt
Joshen Lim69eb4b48f0f4
diff --git a/studio/components/ui/ProductMenu/ProductMenuItem.tsx b/studio/components/ui/ProductMenu/ProductMenuItem.tsxindex 077f4e40fd2..114181d215c 100644--- a/studio/components/ui/ProductMenu/ProductMenuItem.tsx+++ b/studio/components/ui/ProductMenu/ProductMenuItem.tsx@@ -14,7 +14,7 @@ interface Props {}const ProductMenuItem: FC<Props> = ({- name,+ name = '',isActive,icon,action,@@ -25,8 +25,13 @@ const ProductMenuItem: FC<Props> = ({}) => {const menuItem = (<Menu.Item icon={icon} rounded active={isActive} onClick={onClick}>- <div className="flex w-full justify-between items-center">- <span className={'truncate flex items-center ' + textClassName}>{name}</span>+ <div className="flex w-full items-center justify-between">+ <span+ title={typeof name === 'string' ? name : ''}+ className={'flex items-center truncate ' + textClassName}+ >+ {name}+ </span>{action}</div></Menu.Item>