diff --git a/components/ComposeEmail.tsx b/components/ComposeEmail.tsx
index 9da23628..917e5b70 100644
--- a/components/ComposeEmail.tsx
+++ b/components/ComposeEmail.tsx
@@ -91,7 +91,7 @@ export default function ComposeEmail({
const [userMessage, setUserMessage] = useState('');
const [quotedContent, setQuotedContent] = useState('');
const [hasStartedTyping, setHasStartedTyping] = useState(false);
-
+
useEffect(() => {
// When forwarding or replying, use rich editor
setUseRichEditor(!!replyTo || !!forwardFrom);
@@ -274,7 +274,7 @@ export default function ComposeEmail({
<>
{/* Compose Email Modal */}
{showCompose && (
-
+
{/* Add global styles for email direction */}
- {/* Modal Header */}
+ {/* Modal Header */}
-
+
{composeSubject.startsWith('Re:') ? 'Reply' :
composeSubject.startsWith('Fwd:') ? 'Forward' : 'New Message'}
-
-
+ >
+
+
+
- {/* Modal Body */}
+ {/* Modal Body */}
- {/* CC/BCC Toggle Buttons */}
+ {/* CC/BCC Toggle Buttons */}
- setShowCc(!showCc)}
- >
- {showCc ? 'Hide Cc' : 'Add Cc'}
-
- setShowBcc(!showBcc)}
- >
- {showBcc ? 'Hide Bcc' : 'Add Bcc'}
-
-
+
setShowCc(!showCc)}
+ >
+ {showCc ? 'Hide Cc' : 'Add Cc'}
+
+
setShowBcc(!showBcc)}
+ >
+ {showBcc ? 'Hide Bcc' : 'Add Bcc'}
+
+
- {/* CC Field */}
- {showCc && (
+ {/* CC Field */}
+ {showCc && (
-
- setComposeCc(e.target.value)}
- placeholder="cc@example.com"
- className="w-full mt-1 bg-white border-gray-300 text-gray-900"
- />
-
- )}
+
+
setComposeCc(e.target.value)}
+ placeholder="cc@example.com"
+ className="w-full mt-1 bg-white border-gray-300 text-gray-900"
+ />
+
+ )}
- {/* BCC Field */}
- {showBcc && (
+ {/* BCC Field */}
+ {showBcc && (
-
- setComposeBcc(e.target.value)}
- placeholder="bcc@example.com"
- className="w-full mt-1 bg-white border-gray-300 text-gray-900"
- />
-
- )}
+
+
setComposeBcc(e.target.value)}
+ placeholder="bcc@example.com"
+ className="w-full mt-1 bg-white border-gray-300 text-gray-900"
+ />
+
+ )}
- {/* Subject Field */}
+ {/* Subject Field */}
-
- setComposeSubject(e.target.value)}
- placeholder="Enter subject"
- className="w-full mt-1 bg-white border-gray-300 text-gray-900"
- />
-
+
+ setComposeSubject(e.target.value)}
+ placeholder="Enter subject"
+ className="w-full mt-1 bg-white border-gray-300 text-gray-900"
+ />
+
{/* Message Body - conditionally render either rich editor or textarea */}
@@ -438,7 +438,7 @@ export default function ComposeEmail({
>
{
const target = e.currentTarget;
@@ -455,8 +455,8 @@ export default function ComposeEmail({
setComposeBody(combined);
}
}}
- style={{
- direction: 'ltr',
+ style={{
+ direction: 'ltr',
textAlign: 'left',
unicodeBidi: 'isolate',
writingMode: 'horizontal-tb'
@@ -475,55 +475,55 @@ export default function ComposeEmail({
style={{ direction: 'ltr', textAlign: 'left' }}
/>
)}
-
-
-
-
- {/* Modal Footer */}
-
-
- {/* File Input for Attachments */}
-
-
-
-
- setShowCompose(false)}
- >
- Cancel
-
-
- {isSending ? 'Sending...' : 'Send'}
-
-
+
+ {/* Modal Footer */}
+
+
+ {/* File Input for Attachments */}
+
+
+
+
+ setShowCompose(false)}
+ >
+ Cancel
+
+
+ {isSending ? 'Sending...' : 'Send'}
+
+
+
+
+
)}
>
);
-}
\ No newline at end of file
+}
\ No newline at end of file