From ca21867224a2055172ade5ead17cca78599a1cf5 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Mon, 4 May 2026 14:05:51 -0700 Subject: [PATCH 1/2] fix(dashboard): give vibe-code editor a definite height; sandbox email-preview iframes The email template/theme/draft editors render inside VibeCodeLayout, whose mobile and desktop wrappers used `h-full`. The dashboard shell's `
` has no explicit height (its flex parent uses `items-start`, so it doesn't stretch), so percentage heights collapsed and the editor rendered with zero height. Anchor the wrappers to viewport-minus-header instead, matching the values already used by `sidebar-layout.tsx` (3.5rem light, 6rem dark for the floating header). This decouples the editor from any ancestor height chain. Also lock down the email preview iframes with `sandbox=""` so untrusted template HTML can't run scripts, navigate the parent, submit forms, etc. --- apps/dashboard/src/components/email-preview.tsx | 2 ++ .../src/components/vibe-coding/vibe-code-layout.tsx | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/components/email-preview.tsx b/apps/dashboard/src/components/email-preview.tsx index ac9c6d3912..36cead7983 100644 --- a/apps/dashboard/src/components/email-preview.tsx +++ b/apps/dashboard/src/components/email-preview.tsx @@ -106,6 +106,7 @@ function EmailPreviewContent({ return (