From 5957c19ce0d02ac9f4a6bd47ad157f6c2737364e Mon Sep 17 00:00:00 2001 From: fcarraUniSa Date: Wed, 10 Dec 2025 16:03:30 +0100 Subject: [PATCH] Update TemplateEditor.tsx --- components/TemplateEditor.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/TemplateEditor.tsx b/components/TemplateEditor.tsx index 9ab42aa..46f68ad 100644 --- a/components/TemplateEditor.tsx +++ b/components/TemplateEditor.tsx @@ -161,7 +161,7 @@ const Editor: React.FC = ({ initialTemplate, onBack, onSave }) => { return (
{/* Top Bar */} -
+
{/* Right: Live Preview */} -
-
+
+
Live Preview @@ -297,8 +297,10 @@ const Editor: React.FC = ({ initialTemplate, onBack, onSave }) => { Renders as standard HTML
-
-
+ {/* Scrollable container: flex-1 ensures it takes available space, overflow-y-auto enables scrolling */} +
+ {/* mx-auto centers the card without using flexbox on the parent which can cause scroll issues */} +
{/* Simulate Subject Line in Preview */}
Subject: