Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): restore email template source editor height (#47350)

Ali Waseemf1f80dd0bf82
diff --git a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx b/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
index 8419362b851..96e263d54ae 100644
--- a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
+++ b/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
@@ -264,7 +264,9 @@ export const CodeEditor = ({
// 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')}
+ // Order matters: `h-full` is a default, so a caller-supplied height in `className`
+ // (e.g. `h-96`) wins via tailwind-merge instead of being clobbered.
+ className={cn('monaco-editor', 'h-full', className)}
wrapperProps={{ className: wrapperClassName }}
value={value ?? undefined}
language={language}