From c00065ce4a9e204570c5ed04d7978ede7a41b5ce Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 26 Apr 2026 09:56:32 +0200 Subject: [PATCH] refactor(navigation): scrollToFocusedNote takes an options object Smooth-scroll for the anchor jump when the target note is already stacked, instant otherwise. While threading the new flag, the four positional params got hard to read, so collapse them into { noteId, notes, hash, smoothHash } and update all call sites. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/StackedNote.vue | 2 +- src/components/StackedPublicNote.vue | 2 +- src/hooks/useATProtoLinks.hook.ts | 4 +-- src/hooks/useRouteQueryStackedNotes.hook.ts | 35 +++++++++++++++------ 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/components/StackedNote.vue b/src/components/StackedNote.vue index 0e1a3b6..8a76fd3 100644 --- a/src/components/StackedNote.vue +++ b/src/components/StackedNote.vue @@ -142,7 +142,7 @@ watch(mode, async (newMode) => { >