The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Small fix to prevent layout shift in SQL editor when running query (#38270)
Joshen Limc53dc5c159dc
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsxindex 12383978073..52f5444c228 100644--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx@@ -676,7 +676,7 @@ export const SQLEditor = () => {direction="vertical"autoSaveId={LOCAL_STORAGE_KEYS.SQL_EDITOR_SPLIT_SIZE}>- <ResizablePanel maxSize={70}>+ <ResizablePanel defaultSize={50} maxSize={70}><div className="flex-grow overflow-y-auto border-b h-full">{isLoading ? (<div className="flex h-full w-full items-center justify-center">@@ -793,7 +793,7 @@ export const SQLEditor = () => {<ResizableHandle withHandle />- <ResizablePanel maxSize={70}>+ <ResizablePanel defaultSize={50} maxSize={70}>{isLoading ? (<div className="flex h-full w-full items-center justify-center"><Loader2 className="animate-spin text-brand" />@@ -811,7 +811,7 @@ export const SQLEditor = () => {)}</ResizablePanel>- <div className="max-h-9">+ <div className="h-9">{results?.rows !== undefined && !isExecuting && (<GridFooter className="flex items-center justify-between gap-2"><Tooltip>diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsxindex d7704a00b44..8e933e22d5d 100644--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx@@ -78,7 +78,7 @@ const UtilityActions = ({<DropdownMenu><DropdownMenuTrigger asChild><Button- data-testId="sql-editor-utility-actions"+ data-testid="sql-editor-utility-actions"type="default"className={cn('px-1', isAiOpen ? 'block 2xl:hidden' : 'hidden')}icon={<MoreVertical className="text-foreground-light" />}diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsxindex 901e6ed8701..00261899132 100644--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx@@ -133,7 +133,7 @@ export const SQLEditorMenu = () => {<DropdownMenu><DropdownMenuTrigger asChild><Button- data-testId="sql-editor-new-query-button"+ data-testid="sql-editor-new-query-button"type="default"icon={<Plus className="text-foreground" />}className="w-[26px]"