courrier refactor rebuild 2
This commit is contained in:
parent
c3284982b5
commit
7466037779
@ -382,7 +382,7 @@ export default function ComposeEmail(props: ComposeEmailAllProps) {
|
||||
{/* Message Body */}
|
||||
<div className="flex-1 min-h-[200px] flex flex-col overflow-hidden">
|
||||
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
|
||||
<div className="flex-1 border border-gray-300 rounded-md overflow-hidden">
|
||||
<div className="flex-1 border border-gray-300 rounded-md overflow-auto">
|
||||
<RichEmailEditor
|
||||
initialContent={emailContent}
|
||||
onChange={setEmailContent}
|
||||
@ -390,15 +390,17 @@ export default function ComposeEmail(props: ComposeEmailAllProps) {
|
||||
maxHeight="none"
|
||||
preserveFormatting={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Render quoted content for replies and forwards */}
|
||||
{initialEmail && type !== 'new' && (
|
||||
<div className="mt-4">
|
||||
<EmailMessageToQuotedContentAdapter
|
||||
email={initialEmail}
|
||||
type={type as 'reply' | 'reply-all' | 'forward'}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Attachments */}
|
||||
@ -696,7 +698,7 @@ function LegacyAdapter({
|
||||
{/* Message Body */}
|
||||
<div className="flex-1 min-h-[200px] flex flex-col overflow-hidden">
|
||||
<Label htmlFor="message" className="flex-none block text-sm font-medium text-gray-700 mb-2">Message</Label>
|
||||
<div className="flex-1 border border-gray-300 rounded-md overflow-hidden">
|
||||
<div className="flex-1 border border-gray-300 rounded-md overflow-auto">
|
||||
<RichEmailEditor
|
||||
initialContent={composeBody}
|
||||
onChange={setComposeBody}
|
||||
@ -704,6 +706,7 @@ function LegacyAdapter({
|
||||
maxHeight="none"
|
||||
preserveFormatting={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Render original message for replies and forwards */}
|
||||
{(originalEmail || replyTo || forwardFrom) && (
|
||||
@ -732,7 +735,6 @@ function LegacyAdapter({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Attachments */}
|
||||
{attachments.length > 0 && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user