mail page fix
This commit is contained in:
parent
b18f983109
commit
57255ad03e
@ -398,8 +398,6 @@ function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): st
|
|||||||
|
|
||||||
if (type === 'forward') {
|
if (type === 'forward') {
|
||||||
return `
|
return `
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<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" style="border-left: 2px solid #ccc; padding-left: 1em; margin-left: 0.5em;">
|
||||||
<p><strong>From:</strong> ${email.from}</p>
|
<p><strong>From:</strong> ${email.from}</p>
|
||||||
<p><strong>Date:</strong> ${date}</p>
|
<p><strong>Date:</strong> ${date}</p>
|
||||||
@ -411,8 +409,6 @@ function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): st
|
|||||||
`;
|
`;
|
||||||
} else {
|
} else {
|
||||||
return `
|
return `
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<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" style="border-left: 2px solid #ccc; padding-left: 1em; margin-left: 0.5em;">
|
||||||
<p>On ${date}, ${email.from} wrote:</p>
|
<p>On ${date}, ${email.from} wrote:</p>
|
||||||
<div class="prose max-w-none">${content}</div>
|
<div class="prose max-w-none">${content}</div>
|
||||||
|
|||||||
@ -227,6 +227,7 @@ export default function ComposeEmail({
|
|||||||
lineHeight: 'inherit',
|
lineHeight: 'inherit',
|
||||||
}}
|
}}
|
||||||
onInput={handleInput}
|
onInput={handleInput}
|
||||||
|
dangerouslySetInnerHTML={{ __html: composeBody }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user