fix: remove smooth scroll animation on settings section navigation

This commit is contained in:
Jinjing 2026-04-17 10:27:24 -07:00
parent 6767157fe0
commit a25fab66eb

View file

@ -318,7 +318,7 @@ function Settings(): React.JSX.Element {
if (scrollTargetId && pendingNavSectionId && visibleIds.has(pendingNavSectionId)) {
const target = document.getElementById(scrollTargetId)
target?.scrollIntoView({ behavior: 'smooth', block: 'start' })
target?.scrollIntoView({ block: 'start' })
setActiveSectionId(pendingNavSectionId)
pendingNavSectionRef.current = null
pendingScrollTargetRef.current = null
@ -385,7 +385,7 @@ function Settings(): React.JSX.Element {
if (!target) {
return
}
target.scrollIntoView({ behavior: 'smooth', block: 'start' })
target.scrollIntoView({ block: 'start' })
setActiveSectionId(sectionId)
}, [])