mail page fix

This commit is contained in:
alma 2025-04-21 18:59:03 +02:00
parent d12c680560
commit 4bba64dff0

View File

@ -398,20 +398,23 @@ function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): st
if (type === 'forward') { if (type === 'forward') {
return ` return `
<div class="prose max-w-none" style="border-left: 2px solid #ccc; padding-left: 1em; margin-left: 0.5em;"> <div class="prose max-w-none">
<p><strong>From:</strong> ${email.from}</p> <blockquote class="border-l-4 border-gray-300 pl-4 my-4">
<p><strong>Date:</strong> ${date}</p> <p><strong>From:</strong> ${email.from}</p>
<p><strong>Subject:</strong> ${email.subject}</p> <p><strong>Date:</strong> ${date}</p>
<p><strong>To:</strong> ${Array.isArray(email.to) ? email.to.join(', ') : email.to}</p> <p><strong>Subject:</strong> ${email.subject}</p>
<br/> <p><strong>To:</strong> ${Array.isArray(email.to) ? email.to.join(', ') : email.to}</p>
<div class="prose max-w-none">${content}</div> <div class="mt-4">${content}</div>
</blockquote>
</div> </div>
`; `;
} else { } else {
return ` return `
<div class="prose max-w-none" style="border-left: 2px solid #ccc; padding-left: 1em; margin-left: 0.5em;"> <div class="prose max-w-none">
<p>On ${date}, ${email.from} wrote:</p> <blockquote class="border-l-4 border-gray-300 pl-4 my-4">
<div class="prose max-w-none">${content}</div> <p>On ${date}, ${email.from} wrote:</p>
<div class="mt-4">${content}</div>
</blockquote>
</div> </div>
`; `;
} }