Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/dashboard/src/components/email-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function EmailPreviewContent({

return (
<iframe
sandbox="allow-scripts"
srcDoc={inertPreviewHtml}
className="w-full h-full border-0"
title="Email Preview"
Expand Down Expand Up @@ -692,6 +693,7 @@ function EmailPreviewEditableContent({

return (
<iframe
sandbox="allow-scripts"
ref={iframeRef}
srcDoc={editableHtml}
className="w-full h-full border-0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ export default function VibeCodeLayout({
return (
<TooltipProvider delayDuration={300}>
{/* Mobile Layout - visible on small screens, hidden on md+ */}
<div className="flex flex-col h-full w-full overflow-hidden md:hidden">
{/* h-[calc(100dvh-3.5rem)] anchors to viewport (minus sticky header) so the
editor doesn't depend on an unbroken h-full chain through the dashboard
shell, which collapses because <main> doesn't stretch (items-start). */}
<div className="flex flex-col h-[calc(100dvh-3.5rem)] w-full overflow-hidden md:hidden">
{/* Mobile Header - Compact */}
<div className="px-3 pt-3 pb-2 shrink-0">
<div className="flex flex-col gap-2">
Expand Down Expand Up @@ -354,7 +357,9 @@ export default function VibeCodeLayout({
</div>

{/* Desktop/Tablet Layout - hidden on small screens, visible on md+ */}
<div className="hidden md:flex flex-col h-full w-full overflow-hidden">
{/* See note on the mobile wrapper above; the dark-mode header is taller
(floating card with mt-3/mb-3 padding), matching sidebar-layout.tsx. */}
<div className="hidden md:flex flex-col h-[calc(100vh-3.5rem)] dark:h-[calc(100vh-6rem)] w-full overflow-hidden">
<div className="flex-1 overflow-hidden flex flex-col">
{/* Top Header / Toolbar - with consistent inset spacing */}
<div className="px-6 pt-4 pb-3">
Expand Down
Loading