diff --git a/app/globals.css b/app/globals.css index 0b023abb..2f2b64b5 100644 --- a/app/globals.css +++ b/app/globals.css @@ -98,9 +98,14 @@ /* Email content wrapper should respect natural text direction */ .email-content-wrapper { - direction: auto; + direction: rtl; unicode-bidi: isolate; - text-align: initial; + text-align: right; +} + +.email-content { + direction: rtl; + text-align: right; } .email-content-wrapper * { @@ -108,3 +113,22 @@ word-wrap: break-word; } +/* Styles for forwarded/replied content */ +.email-original-content { + padding-left: 10px; + border-left: 2px solid #e0e0e0; + margin: 10px 0; +} + +.quote-header { + margin: 10px 0; + color: #666; +} + +blockquote.quoted-content { + padding-left: 10px; + border-left: 2px solid #e0e0e0; + margin: 5px 0; + color: #555; +} + diff --git a/components/email/EmailContent.tsx b/components/email/EmailContent.tsx index 65b4ea90..71ca591d 100644 --- a/components/email/EmailContent.tsx +++ b/components/email/EmailContent.tsx @@ -38,7 +38,8 @@ export default function EmailContent({ email }: EmailContentProps) {
); } catch (err) { diff --git a/components/email/EmailPanel.tsx b/components/email/EmailPanel.tsx index b30c4778..b81ffc90 100644 --- a/components/email/EmailPanel.tsx +++ b/components/email/EmailPanel.tsx @@ -199,10 +199,12 @@ export default function EmailPanel({ onSend={onSendEmail} /> ) : ( - +
+ +
)}
); diff --git a/components/email/EmailPreview.tsx b/components/email/EmailPreview.tsx index d04c87ad..fa732a06 100644 --- a/components/email/EmailPreview.tsx +++ b/components/email/EmailPreview.tsx @@ -5,6 +5,7 @@ import DOMPurify from 'isomorphic-dompurify'; import { Loader2, Paperclip, Download } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; +import { ScrollArea } from '@/components/ui/scroll-area'; import { sanitizeHtml } from '@/lib/utils/email-formatter'; interface EmailAddress { @@ -66,7 +67,8 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP
); } catch (error) { @@ -198,9 +200,11 @@ export default function EmailPreview({ email, loading = false, onReply }: EmailP
{/* Email content */} -
- {renderContent()} -
+ +
+ {renderContent()} +
+
); } \ No newline at end of file