diff --git a/frontend/src/components/mail/MailDetail.tsx b/frontend/src/components/mail/MailDetail.tsx index 945400d..c70b04d 100644 --- a/frontend/src/components/mail/MailDetail.tsx +++ b/frontend/src/components/mail/MailDetail.tsx @@ -1,14 +1,13 @@ /** * Mail detail reading pane. - * Shows mail headers, sanitized HTML body, attachments, reply/forward/create-event actions. + * Shows mail headers, sanitized HTML body, and attachments. + * Actions (reply/forward/delete/etc.) are in the global plugin toolbar. */ import React, { useMemo, useRef, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; -import clsx from 'clsx'; import type { Mail, MailAttachment } from '@/api/mail'; import { Button } from '@/components/ui/Button'; -import { Badge } from '@/components/ui/Badge'; import { EmptyState } from '@/components/ui/EmptyState'; export interface MailDetailProps { @@ -44,15 +43,8 @@ function formatBytes(bytes: number): string { export function MailDetail({ mail, loading, - onReply, - onForward, - onCreateEvent, - onToggleFlag, onDownloadAttachment, downloadingAttachmentId, - onDelete, - onMove, - onEditDraft, }: MailDetailProps) { const { t } = useTranslation(); @@ -102,90 +94,6 @@ export function MailDetail({ return (
{mail.body_text}
+ {/* Body + Attachments — scrollable together */}
+ {mail.body_text}
+ )}
+ {att.filename}
+{formatBytes(att.size_bytes)}
+{att.filename}
-{formatBytes(att.size_bytes)}
-