From bf3ccef42b6f640c20670541d043a022f5596eba Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 22 May 2026 13:12:03 +0800 Subject: [PATCH] auto-sync: 2026-05-22 13:12:03 --- src/frontend/src/components/MailPanel.tsx | 31 +++++++---------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/src/frontend/src/components/MailPanel.tsx b/src/frontend/src/components/MailPanel.tsx index 1376d2f..cb425dc 100644 --- a/src/frontend/src/components/MailPanel.tsx +++ b/src/frontend/src/components/MailPanel.tsx @@ -136,8 +136,8 @@ export default function MailPanel() { {detail.type || 'text'} - - {detail.is_read ? '已读' : '未读'} + + {STATUS_LABELS[detail.status] || detail.status}
{detail.title}
@@ -180,31 +180,18 @@ export default function MailPanel() { {/* 操作 */}
- {!detail.is_read && ( - - )} - {detail.status !== 'done' && ( + {detail.status === 'failed' && ( + border: '1px solid #f59e0b', background: '#f59e0b22', color: '#f59e0b', cursor: 'pointer', + }}>🔄 重试 )}