courrier refactor rebuild 2
This commit is contained in:
parent
76cc7b5bf2
commit
b036530766
@ -332,18 +332,23 @@ 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..."
|
|
||||||
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={{
|
style={{
|
||||||
minHeight: '200px',
|
minHeight: '200px',
|
||||||
maxHeight: 'calc(100vh - 400px)',
|
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 */}
|
||||||
{attachments.length > 0 && (
|
{attachments.length > 0 && (
|
||||||
@ -621,18 +626,23 @@ 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..."
|
|
||||||
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={{
|
style={{
|
||||||
minHeight: '200px',
|
minHeight: '200px',
|
||||||
maxHeight: 'calc(100vh - 400px)',
|
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 */}
|
||||||
{attachments.length > 0 && (
|
{attachments.length > 0 && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user