The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix some styling in command menu (#20752)
Charis5e05260d3116
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsxindex 743ffd950af..c7787dec582 100644--- a/packages/ui/src/components/Command/AiCommand.tsx+++ b/packages/ui/src/components/Command/AiCommand.tsx@@ -377,7 +377,7 @@ const AiCommand = () => {return (<div onClick={(e) => e.stopPropagation()}>- <div className={cn('relative mb-[145px] py-4 max-h-[720px] overflow-auto')}>+ <div className={cn('relative mb-[145px] py-4 max-h-[720px]')}>{!hasError &&messages.map((message, index) => {switch (message.role) {@@ -399,7 +399,7 @@ const AiCommand = () => {)case MessageRole.Assistant:return (- <div key={index} className="px-4 [overflow-anchor:none] mb-6">+ <div key={index} className="px-4 [overflow-anchor:none] mb-[150px]"><div className="flex gap-6 [overflow-anchor:none] mb-6"><AiIconChatloading={diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex 7dea28f68e4..f93244514f8 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -84,7 +84,11 @@ const CommandMenu = () => {}const commandListMaxHeight =- currentPage === COMMAND_ROUTES.DOCS_SEARCH ? 'min(600px, 50vh)' : '300px'+ currentPage === COMMAND_ROUTES.DOCS_SEARCH ||+ currentPage === COMMAND_ROUTES.AI ||+ currentPage === COMMAND_ROUTES.GENERATE_SQL+ ? 'min(600px, 50vh)'+ : '300px'return (<>@@ -113,7 +117,12 @@ const CommandMenu = () => {<CommandListstyle={{maxHeight: commandListMaxHeight,- height: currentPage === COMMAND_ROUTES.DOCS_SEARCH ? commandListMaxHeight : 'auto',+ height:+ currentPage === COMMAND_ROUTES.DOCS_SEARCH ||+ currentPage === COMMAND_ROUTES.AI ||+ currentPage === COMMAND_ROUTES.GENERATE_SQL+ ? commandListMaxHeight+ : 'auto',}}className="my-2">diff --git a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsxindex d448787c4cd..192d293989b 100644--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx@@ -129,7 +129,7 @@ const GenerateSQL = () => {answer.replace(/^-- /, '') === "Sorry, I don't know how to help with that."return (- <div className="px-4 [overflow-anchor:none] mb-6">+ <div className="px-4 [overflow-anchor:none] mb-[150px]"><div className="flex gap-6 [overflow-anchor:none] mb-6"><div><AiIconChat