courrier refactor rebuild preview
This commit is contained in:
parent
bf7b02b903
commit
034cf6da23
@ -122,8 +122,11 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP
|
|||||||
|
|
||||||
const sender = email.from && email.from.length > 0 ? email.from[0] : undefined;
|
const sender = email.from && email.from.length > 0 ? email.from[0] : undefined;
|
||||||
|
|
||||||
// Use sanitizeHtml directly, matching ComposeEmail exactly
|
// Enable debugging to see what content is coming in
|
||||||
const emailContent = sanitizeHtml(email.content || email.html || email.text || '');
|
console.log("Email content in preview:", email.content);
|
||||||
|
|
||||||
|
// Use the exact same approach for content as in ComposeEmail - no custom sanitization
|
||||||
|
const emailContent = email.content || email.html || email.text || '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="flex flex-col h-full overflow-hidden border-0 shadow-none">
|
<Card className="flex flex-col h-full overflow-hidden border-0 shadow-none">
|
||||||
@ -202,7 +205,7 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Email content - EXACT copy from ComposeEmail */}
|
{/* Email content - debuggable version */}
|
||||||
<ScrollArea className="flex-1">
|
<ScrollArea className="flex-1">
|
||||||
<div className="space-y-2 p-6">
|
<div className="space-y-2 p-6">
|
||||||
<div className="border rounded-md overflow-hidden">
|
<div className="border rounded-md overflow-hidden">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user