- )}
- {/* BCC Field */}
- {showBcc && (
-
-
+ {/* 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 */}
+
+
setBcc(e.target.value)}
- placeholder="bcc@example.com"
+ id="subject"
+ value={subject}
+ onChange={(e) => setSubject(e.target.value)}
+ placeholder="Enter subject"
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 */}
-
+ {/* Message Body - with improved overflow handling */}
+
-
+
0 && (
-
+
Attachments
-
+
{attachments.map((file, index) => (
{file.name}
@@ -318,6 +322,7 @@ export default function ComposeEmail(props: ComposeEmailProps) {
)}
+
{/* Modal Footer - now inside the main modal container and visually attached */}
@@ -376,6 +381,43 @@ export default function ComposeEmail(props: ComposeEmailProps) {
+
+ {/* Add styles for better formatting */}
+
);
}
\ No newline at end of file