mail page fix
This commit is contained in:
parent
22d472c8fa
commit
4406bef562
@ -329,9 +329,9 @@ const initialSidebarItems = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): string {
|
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);
|
const { contentType, encoding, charset } = parseEmailHeaders(headers);
|
||||||
|
|
||||||
let content = '';
|
let content = '';
|
||||||
|
|||||||
@ -216,10 +216,14 @@ export default function ComposeEmail({
|
|||||||
<div
|
<div
|
||||||
ref={composeBodyRef}
|
ref={composeBodyRef}
|
||||||
contentEditable
|
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"
|
className="prose max-w-none min-h-[200px] p-4 border border-gray-300 rounded-lg bg-white"
|
||||||
style={{ cursor: 'text', whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}
|
style={{
|
||||||
|
color: '#000000',
|
||||||
|
cursor: 'text',
|
||||||
|
whiteSpace: 'pre-wrap',
|
||||||
|
wordBreak: 'break-word',
|
||||||
|
}}
|
||||||
onInput={handleInput}
|
onInput={handleInput}
|
||||||
dangerouslySetInnerHTML={{ __html: composeBody }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user