From 4adedad0de41370d723797082b344f505c6e3932 Mon Sep 17 00:00:00 2001 From: tisonhuang Date: Thu, 5 Mar 2026 10:24:01 +0800 Subject: [PATCH] fix(export): hide cache meta row and adjust info popover anchor --- src/pages/ExportPage.scss | 2 +- src/pages/ExportPage.tsx | 44 +-------------------------------------- 2 files changed, 2 insertions(+), 44 deletions(-) diff --git a/src/pages/ExportPage.scss b/src/pages/ExportPage.scss index ec70e6a..69469cb 100644 --- a/src/pages/ExportPage.scss +++ b/src/pages/ExportPage.scss @@ -63,7 +63,7 @@ .section-info-popover { position: absolute; top: calc(100% + 8px); - right: 0; + left: 0; width: min(340px, calc(100vw - 40px)); border-radius: 10px; border: 1px solid var(--border-color); diff --git a/src/pages/ExportPage.tsx b/src/pages/ExportPage.tsx index 324bcb4..6a9f803 100644 --- a/src/pages/ExportPage.tsx +++ b/src/pages/ExportPage.tsx @@ -1061,7 +1061,7 @@ function ExportPage() { const [selectedSessions, setSelectedSessions] = useState>(new Set()) const [contactsList, setContactsList] = useState([]) const [isContactsListLoading, setIsContactsListLoading] = useState(true) - const [contactsDataSource, setContactsDataSource] = useState(null) + const [, setContactsDataSource] = useState(null) const [contactsUpdatedAt, setContactsUpdatedAt] = useState(null) const [avatarCacheUpdatedAt, setAvatarCacheUpdatedAt] = useState(null) const [sessionMessageCounts, setSessionMessageCounts] = useState>({}) @@ -3335,22 +3335,6 @@ function ExportPage() { } }, []) - const contactsUpdatedAtLabel = useMemo(() => { - if (!contactsUpdatedAt) return '' - return new Date(contactsUpdatedAt).toLocaleString() - }, [contactsUpdatedAt]) - - const avatarCacheUpdatedAtLabel = useMemo(() => { - if (!avatarCacheUpdatedAt) return '' - return new Date(avatarCacheUpdatedAt).toLocaleString() - }, [avatarCacheUpdatedAt]) - - const contactsAvatarCachedCount = useMemo(() => { - return contactsList.reduce((count, contact) => ( - contact.avatarUrl ? count + 1 : count - ), 0) - }, [contactsList]) - const contactsIssueElapsedMs = useMemo(() => { if (!contactsLoadIssue) return 0 if (isContactsListLoading && contactsLoadSession) { @@ -3876,32 +3860,6 @@ function ExportPage() { -
- - 共 {filteredContacts.length} / {contactsList.length} 个联系人 - - {contactsUpdatedAt && ( - - {contactsDataSource === 'cache' ? '缓存' : '最新'} · 更新于 {contactsUpdatedAtLabel} - - )} - {contactsList.length > 0 && ( - - 头像缓存 {contactsAvatarCachedCount}/{contactsList.length} - {avatarCacheUpdatedAtLabel ? ` · 更新于 ${avatarCacheUpdatedAtLabel}` : ''} - - )} - {isContactsListLoading && contactsList.length > 0 && ( - 后台同步中... - )} - {isLoadingSessionCounts && ( - - - 消息总数统计中… - - )} -
- {contactsList.length > 0 && isContactsListLoading && (