From a6a202f6ff311c6dce62d2a416774805824bca46 Mon Sep 17 00:00:00 2001 From: aits2026 Date: Fri, 6 Mar 2026 19:55:10 +0800 Subject: [PATCH] fix(export): remove incorrect row action offset --- src/pages/ExportPage.scss | 1 - src/pages/ExportPage.tsx | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/pages/ExportPage.scss b/src/pages/ExportPage.scss index 77d0383..d1c8c0d 100644 --- a/src/pages/ExportPage.scss +++ b/src/pages/ExportPage.scss @@ -2486,7 +2486,6 @@ right: 0; z-index: 10; background: var(--bg-primary); - will-change: transform; &::before { content: ''; diff --git a/src/pages/ExportPage.tsx b/src/pages/ExportPage.tsx index b43ba34..38d01a5 100644 --- a/src/pages/ExportPage.tsx +++ b/src/pages/ExportPage.tsx @@ -1513,7 +1513,6 @@ function ExportPage() { const [nowTick, setNowTick] = useState(Date.now()) const [isContactsListAtTop, setIsContactsListAtTop] = useState(true) const [isContactsHeaderDragging, setIsContactsHeaderDragging] = useState(false) - const [contactsHorizontalScrollLeft, setContactsHorizontalScrollLeft] = useState(0) const [contactsHorizontalScrollMetrics, setContactsHorizontalScrollMetrics] = useState({ viewportWidth: 0, contentWidth: 0 @@ -5633,19 +5632,6 @@ function ExportPage() { const contactsBottomScrollbarInnerStyle = useMemo(() => ({ width: `${Math.max(contactsHorizontalScrollMetrics.contentWidth, contactsHorizontalScrollMetrics.viewportWidth)}px` }), [contactsHorizontalScrollMetrics.contentWidth, contactsHorizontalScrollMetrics.viewportWidth]) - const contactsActionStickyStyle = useMemo(() => { - const maxScrollLeft = Math.max(0, contactsHorizontalScrollMetrics.contentWidth - contactsHorizontalScrollMetrics.viewportWidth) - if (maxScrollLeft <= 0) return {} - - const compensatedTranslateX = Math.min(0, contactsHorizontalScrollLeft - maxScrollLeft) - return Math.abs(compensatedTranslateX) > 0.5 - ? { transform: `translateX(${compensatedTranslateX}px)` } - : {} - }, [ - contactsHorizontalScrollLeft, - contactsHorizontalScrollMetrics.contentWidth, - contactsHorizontalScrollMetrics.viewportWidth - ]) const nonExportBackgroundTasks = useMemo(() => ( backgroundTasks.filter(task => task.sourcePage !== 'export') ), [backgroundTasks]) @@ -5701,10 +5687,6 @@ function ExportPage() { bottomScrollbar.scrollLeft = scrollLeft } - setContactsHorizontalScrollLeft(prev => ( - Math.abs(prev - scrollLeft) > 1 ? scrollLeft : prev - )) - window.requestAnimationFrame(() => { if (contactsScrollSyncSourceRef.current === source) { contactsScrollSyncSourceRef.current = null @@ -5792,9 +5774,6 @@ function ExportPage() { if (Math.abs(viewport.scrollLeft - clampedScrollLeft) > 1) { viewport.scrollLeft = clampedScrollLeft } - setContactsHorizontalScrollLeft(prev => ( - Math.abs(prev - clampedScrollLeft) > 1 ? clampedScrollLeft : prev - )) const bottomScrollbar = contactsBottomScrollbarRef.current if (bottomScrollbar) { @@ -6016,7 +5995,7 @@ function ExportPage() { )} )} -
+