From 58c67d980ff085d96037d55ccc5d6a4c13d06f42 Mon Sep 17 00:00:00 2001 From: alma Date: Mon, 21 Apr 2025 19:26:47 +0200 Subject: [PATCH] mail page fix design --- components/ComposeEmail.tsx | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/components/ComposeEmail.tsx b/components/ComposeEmail.tsx index 5740846e..eee604cd 100644 --- a/components/ComposeEmail.tsx +++ b/components/ComposeEmail.tsx @@ -53,19 +53,10 @@ export default function ComposeEmail({ const handleInput = (e: React.FormEvent) => { if (composeBodyRef.current) { - const content = composeBodyRef.current.textContent || ''; - setComposeBody(content); + setComposeBody(composeBodyRef.current.innerHTML); } }; - useEffect(() => { - if (composeBodyRef.current) { - composeBodyRef.current.innerHTML = ''; - const textNode = document.createTextNode(composeBody); - composeBodyRef.current.appendChild(textNode); - } - }, [composeBody]); - const handleFileAttachment = async (e: React.ChangeEvent) => { if (!e.target.files) return; @@ -215,24 +206,21 @@ export default function ComposeEmail({ {/* Message Body */}
-