The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): prevent Monaco editor collapse after visiting GraphiQL (#47339)
Alaister Young4f80bb70cdfd
diff --git a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx b/apps/studio/components/ui/CodeEditor/CodeEditor.tsxindex 75901839ffe..8419362b851 100644--- a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx+++ b/apps/studio/components/ui/CodeEditor/CodeEditor.tsx@@ -260,7 +260,11 @@ export const CodeEditor = ({<Editorpath={id}theme="supabase"- className={cn(className, 'monaco-editor')}+ // `h-full` keeps this wrapper filling its container even if a global `.monaco-editor`+ // rule flips it to `position: absolute` (which happens after visiting GraphiQL, since it+ // injects a second copy of Monaco's CSS onto the shared instance). Without an explicit+ // height, an absolutely-positioned wrapper collapses to 0 and Monaco lays out at ~5px.+ className={cn(className, 'monaco-editor', 'h-full')}wrapperProps={{ className: wrapperClassName }}value={value ?? undefined}language={language}