courrier refactor rebuild 2

This commit is contained in:
alma 2025-04-27 10:13:52 +02:00
parent 76cc7b5bf2
commit b036530766

View File

@ -332,17 +332,22 @@ export default function ComposeEmail(props: ComposeEmailAllProps) {
{/* Message Body */}
<div className="flex-1 min-h-[200px] flex flex-col">
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
<Textarea
value={emailContent}
onChange={(e) => setEmailContent(e.target.value)}
placeholder="Write your message here..."
className="flex-1 w-full bg-white border border-gray-300 rounded-md p-4 text-black overflow-y-auto focus:outline-none focus:ring-1 focus:ring-blue-500"
style={{
minHeight: '200px',
maxHeight: 'calc(100vh - 400px)',
resize: 'none'
}}
/>
<div className="flex-1 flex flex-col border border-gray-300 rounded-md overflow-hidden">
<div
className="flex-1 w-full bg-white p-4 text-black overflow-y-auto email-content-display"
style={{
minHeight: '200px',
maxHeight: 'calc(100vh - 400px)'
}}
>
<div dangerouslySetInnerHTML={{ __html: emailContent }} />
</div>
<textarea
className="hidden"
value={emailContent}
onChange={(e) => setEmailContent(e.target.value)}
/>
</div>
</div>
{/* Attachments */}
@ -621,17 +626,22 @@ function LegacyAdapter({
{/* Message Body */}
<div className="flex-1 min-h-[200px] flex flex-col">
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
<Textarea
value={composeBody}
onChange={(e) => setComposeBody(e.target.value)}
placeholder="Write your message here..."
className="flex-1 w-full bg-white border border-gray-300 rounded-md p-4 text-black overflow-y-auto focus:outline-none focus:ring-1 focus:ring-blue-500"
style={{
minHeight: '200px',
maxHeight: 'calc(100vh - 400px)',
resize: 'none'
}}
/>
<div className="flex-1 flex flex-col border border-gray-300 rounded-md overflow-hidden">
<div
className="flex-1 w-full bg-white p-4 text-black overflow-y-auto email-content-display"
style={{
minHeight: '200px',
maxHeight: 'calc(100vh - 400px)'
}}
>
<div dangerouslySetInnerHTML={{ __html: composeBody }} />
</div>
<textarea
className="hidden"
value={composeBody}
onChange={(e) => setComposeBody(e.target.value)}
/>
</div>
</div>
{/* Attachments */}