mail page fix
This commit is contained in:
parent
bf90acca90
commit
3ca31e0b4b
@ -1362,7 +1362,7 @@ export default function CourrierPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Add handleReply function
|
// Add handleReply function
|
||||||
const handleReply = async (type: 'reply' | 'reply-all' | 'forward') => {
|
const handleReply = (type: 'reply' | 'reply-all' | 'forward') => {
|
||||||
if (!selectedEmail) return;
|
if (!selectedEmail) return;
|
||||||
|
|
||||||
const getReplyTo = () => {
|
const getReplyTo = () => {
|
||||||
@ -1397,10 +1397,12 @@ export default function CourrierPage() {
|
|||||||
setComposeSubject(replyEmail.subject);
|
setComposeSubject(replyEmail.subject);
|
||||||
setComposeBody(replyEmail.body);
|
setComposeBody(replyEmail.body);
|
||||||
|
|
||||||
// Set the content directly on the div
|
// Set the content directly on the div with a slight delay to ensure the component is mounted
|
||||||
|
setTimeout(() => {
|
||||||
if (composeBodyRef.current) {
|
if (composeBodyRef.current) {
|
||||||
composeBodyRef.current.innerHTML = replyEmail.body;
|
composeBodyRef.current.innerHTML = replyEmail.body;
|
||||||
}
|
}
|
||||||
|
}, 0);
|
||||||
|
|
||||||
setComposeBcc('');
|
setComposeBcc('');
|
||||||
|
|
||||||
|
|||||||
@ -229,7 +229,8 @@ export default function ComposeEmail({
|
|||||||
minHeight: '200px',
|
minHeight: '200px',
|
||||||
padding: '1rem',
|
padding: '1rem',
|
||||||
border: '1px solid #e5e7eb',
|
border: '1px solid #e5e7eb',
|
||||||
borderRadius: '0.375rem'
|
borderRadius: '0.375rem',
|
||||||
|
color: '#111827' // text-gray-900
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user