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