From e57f94c614118938facaf73825ead1b366880073 Mon Sep 17 00:00:00 2001 From: plebeius Date: Wed, 25 Feb 2026 19:33:30 +0800 Subject: [PATCH] Update reply-quote-preview.tsx --- src/components/reply-quote-preview/reply-quote-preview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/reply-quote-preview/reply-quote-preview.tsx b/src/components/reply-quote-preview/reply-quote-preview.tsx index 4cec3b34..19932b00 100644 --- a/src/components/reply-quote-preview/reply-quote-preview.tsx +++ b/src/components/reply-quote-preview/reply-quote-preview.tsx @@ -74,9 +74,9 @@ const scrollToThreadCardTop = (threadCid: string) => { const scrollToReplyOnPage = (cid: string) => { const el = document.querySelector(`[data-cid="${cid}"][data-post-cid]`); if (!el) return false; - el.scrollIntoView({ behavior: 'smooth', block: 'center' }); + document.querySelectorAll('.scroll-highlight').forEach((prev) => prev.classList.remove('scroll-highlight')); + el.scrollIntoView({ behavior: 'auto', block: 'center' }); el.classList.add('scroll-highlight'); - setTimeout(() => el.classList.remove('scroll-highlight'), 2000); return true; };