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