mail page fix

This commit is contained in:
alma 2025-04-21 18:33:51 +02:00
parent 22d472c8fa
commit 4406bef562
2 changed files with 9 additions and 5 deletions

View File

@ -329,9 +329,9 @@ const initialSidebarItems = [
];
function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): string {
if (!email.raw) return '';
if (!email.body) return '';
const { headers, body } = splitEmailHeadersAndBody(email.raw);
const { headers, body } = splitEmailHeadersAndBody(email.body);
const { contentType, encoding, charset } = parseEmailHeaders(headers);
let content = '';

View File

@ -216,10 +216,14 @@ export default function ComposeEmail({
<div
ref={composeBodyRef}
contentEditable
className="h-full p-4 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 prose max-w-none bg-white text-gray-900"
style={{ cursor: 'text', whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}
className="prose max-w-none min-h-[200px] p-4 border border-gray-300 rounded-lg bg-white"
style={{
color: '#000000',
cursor: 'text',
whiteSpace: 'pre-wrap',
wordBreak: 'break-word',
}}
onInput={handleInput}
dangerouslySetInnerHTML={{ __html: composeBody }}
/>
</div>
</div>