diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index b68d6534..df70e659 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -403,7 +403,7 @@ function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward' = 'r let formattedContent = ''; if (type === 'forward') { formattedContent = ` -
+

Forwarded message from ${email.from}

Date: ${new Date(email.date).toLocaleString()}

@@ -416,7 +416,7 @@ function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward' = 'r `; } else { formattedContent = ` -
+

On ${new Date(email.date).toLocaleString()}, ${email.from} wrote:

${content}
diff --git a/components/ComposeEmail.tsx b/components/ComposeEmail.tsx index 09eef02c..6ab4692d 100644 --- a/components/ComposeEmail.tsx +++ b/components/ComposeEmail.tsx @@ -57,8 +57,8 @@ export default function ComposeEmail({ if (composeBodyRef.current) { const decodedContent = decodeComposeContent(composeBody); composeBodyRef.current.innerHTML = decodedContent - .replace(/]*>/g, '
') - .replace(/]*>/g, '

'); + .replace(/]*>/g, '

') + .replace(/]*>/g, '

'); } }, [composeBody]); @@ -74,7 +74,7 @@ export default function ComposeEmail({ .replace(/<\/span>/g, ''); const encodedContent = encodeComposeContent( - `

${content}
` + `
${content}
` ); setComposeBody(encodedContent); } @@ -237,7 +237,8 @@ export default function ComposeEmail({ className="w-full h-full mt-1 bg-white border border-gray-300 rounded-md p-2 text-gray-900 overflow-y-auto" style={{ minHeight: '200px', - direction: 'ltr' + direction: 'ltr', + textAlign: 'left' }} dir="ltr" data-gramm="false"