diff --git a/.DS_Store b/.DS_Store index bafcc976..f0a55f97 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app/.DS_Store b/app/.DS_Store index 1a958b34..6305bedb 100644 Binary files a/app/.DS_Store and b/app/.DS_Store differ diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index 242ef1ca..1c77745c 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -360,174 +360,192 @@ export default function ComposeEmail(props: ComposeEmailAllProps) { }, []); return ( -
-
-
-

- {type === 'new' ? 'New Message' : - type === 'reply' ? 'Reply' : - type === 'reply-all' ? 'Reply All' : - 'Forward'} -

- -
-
- -
- {/* Email header fields */} -
-
- To: - setTo(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="recipient@example.com" - /> -
- - {showCc && ( -
- Cc: - setCc(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="cc@example.com" - /> -
- )} - - {showBcc && ( -
- Bcc: - setBcc(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="bcc@example.com" - /> -
- )} - - {/* CC/BCC controls */} -
- - - -
- -
- Subject: - setSubject(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="Subject" - /> -
-
- - {/* Email body editor */} -
- - {/* Attachments list */} - {attachments.length > 0 && ( -
-
Attachments:
-
- {attachments.map((attachment, index) => ( -
- - {attachment.name} - -
- ))} -
-
- )} -
- -
-
- +
+
+ {/* Modal Header */} +
+

+ {type === 'reply' ? 'Reply' : type === 'forward' ? 'Forward' : type === 'reply-all' ? 'Reply All' : 'New Message'} +

- - + + {/* Modal Body */} +
+
+ {/* To Field */} +
+ + setTo(e.target.value)} + placeholder="recipient@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ + {/* CC/BCC Toggle Buttons */} +
+ + +
+ + {/* CC Field */} + {showCc && ( +
+ + setCc(e.target.value)} + placeholder="cc@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ )} + + {/* BCC Field */} + {showBcc && ( +
+ + setBcc(e.target.value)} + placeholder="bcc@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ )} + + {/* Subject Field */} +
+ + setSubject(e.target.value)} + placeholder="Enter subject" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ + {/* Message Body */} +
+ +
+ +
+
+ + {/* Attachments */} + {attachments.length > 0 && ( +
+

Attachments

+
+ {attachments.map((file, index) => ( +
+ {file.name} + +
+ ))} +
+
+ )} +
+
+ + {/* Modal Footer */} +
+
+ {/* File Input for Attachments */} + { + if (e.target.files && e.target.files.length > 0) { + handleAttachmentAdd(e.target.files); + } + }} + /> + + {sending && Preparing attachment...} +
+
+ + +
+
);