mail page fix

This commit is contained in:
alma 2025-04-21 18:04:12 +02:00
parent bf90acca90
commit 3ca31e0b4b
2 changed files with 9 additions and 6 deletions

View File

@ -1362,7 +1362,7 @@ export default function CourrierPage() {
};
// Add handleReply function
const handleReply = async (type: 'reply' | 'reply-all' | 'forward') => {
const handleReply = (type: 'reply' | 'reply-all' | 'forward') => {
if (!selectedEmail) return;
const getReplyTo = () => {
@ -1397,10 +1397,12 @@ export default function CourrierPage() {
setComposeSubject(replyEmail.subject);
setComposeBody(replyEmail.body);
// Set the content directly on the div
if (composeBodyRef.current) {
composeBodyRef.current.innerHTML = replyEmail.body;
}
// Set the content directly on the div with a slight delay to ensure the component is mounted
setTimeout(() => {
if (composeBodyRef.current) {
composeBodyRef.current.innerHTML = replyEmail.body;
}
}, 0);
setComposeBcc('');

View File

@ -229,7 +229,8 @@ export default function ComposeEmail({
minHeight: '200px',
padding: '1rem',
border: '1px solid #e5e7eb',
borderRadius: '0.375rem'
borderRadius: '0.375rem',
color: '#111827' // text-gray-900
}}
/>
</div>