From 2d84f66bdc3aa4a9e28d88f316a4d99859e4ff6d Mon Sep 17 00:00:00 2001 From: 12975 <1297598740@qq.com> Date: Wed, 28 Jan 2026 20:33:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=8F=AF=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E8=B4=A6=E6=88=B7=E5=88=97=E8=A1=A8=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E8=B4=A6=E6=88=B7=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E3=80=81=E6=98=BE=E7=A4=BA=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E3=80=81=E5=90=8C=E6=AD=A5=E6=97=B6=E9=97=B4=E5=8F=8A=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E7=8A=B6=E6=80=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DraggableAccountList/DraggableAccountList.css | 8 ++++---- .../DraggableAccountList/DraggableAccountList.tsx | 13 ++++++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/account/DraggableAccountList/DraggableAccountList.css b/src/components/account/DraggableAccountList/DraggableAccountList.css index 0e202e6..8fb126e 100644 --- a/src/components/account/DraggableAccountList/DraggableAccountList.css +++ b/src/components/account/DraggableAccountList/DraggableAccountList.css @@ -136,17 +136,17 @@ display: inline-flex; align-items: center; gap: 4px; - padding: 2px 8px; + padding: 4px 8px; background: rgba(245, 158, 11, 0.15); /* Amber-100 equivalent with opacity */ - color: #d97706; + color: #D97706; /* Amber-600 */ font-size: 11px; /* Slightly smaller for better fit */ font-weight: 600; - border-radius: 4px; + border-radius: 6px; flex-shrink: 0; - line-height: 1.4; + line-height: 1.2; } /* Account Meta */ diff --git a/src/components/account/DraggableAccountList/DraggableAccountList.tsx b/src/components/account/DraggableAccountList/DraggableAccountList.tsx index 5cae47d..dc44c42 100644 --- a/src/components/account/DraggableAccountList/DraggableAccountList.tsx +++ b/src/components/account/DraggableAccountList/DraggableAccountList.tsx @@ -73,7 +73,7 @@ interface SortableAccountItemProps { * Format sync time to MM月DD日 HH:mm */ const formatSyncTime = (syncTime?: string): string => { - if (!syncTime) return '未同步'; + if (!syncTime) return ''; const date = new Date(syncTime); const month = date.getMonth() + 1; @@ -167,6 +167,7 @@ const SortableAccountItem: React.FC = ({ {account.name} {showWarning && ( + 预警 )} @@ -178,10 +179,12 @@ const SortableAccountItem: React.FC = ({ ID: {account.accountCode} )} - - - {formatSyncTime(account.lastSyncTime)} - + {account.lastSyncTime && ( + + + {formatSyncTime(account.lastSyncTime)} + + )}