diff --git a/app/globals.css b/app/globals.css index 3590765a..45ac427b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -216,3 +216,42 @@ word-break: break-word; } +/* Quill editor customizations for email composition */ +.ql-editor { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.5; +} + +/* Quote formatting for forwarded/replied emails */ +.ql-editor blockquote { + border-left: 3px solid #ddd; + padding-left: 10px; + margin: 8px 0; + color: #555; +} + +/* Forward message formatting */ +.ql-editor .forward-header { + margin-bottom: 10px; + color: #333; + font-family: Arial, sans-serif; +} + +/* Make sure the quoted content is properly indented */ +.ql-editor .email-original-content { + margin-top: 10px; +} + +/* Fix toolbar button styling */ +.ql-toolbar.ql-snow { + border-top: none; + border-left: none; + border-right: none; + border-bottom: 1px solid #e5e7eb; +} + +.ql-container.ql-snow { + border: none; +} + diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index 8811e806..3d4757b2 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -15,6 +15,7 @@ import { Label } from '@/components/ui/label'; import ComposeEmailHeader from './ComposeEmailHeader'; import ComposeEmailForm from './ComposeEmailForm'; import ComposeEmailFooter from './ComposeEmailFooter'; +import RichEmailEditor from './RichEmailEditor'; // Import ONLY from the centralized formatter import { @@ -332,20 +333,12 @@ export default function ComposeEmail(props: ComposeEmailAllProps) { {/* Message Body */}
-
-
-
-
-