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) <noreply@anthropic.com>
This commit is contained in:
Julien Calixte
2026-04-26 09:56:32 +02:00
parent 4ce8c30649
commit c00065ce4a
4 changed files with 30 additions and 13 deletions

View File

@@ -97,7 +97,7 @@ watch(
>
<a
class="title-stacked-note-link"
@click.prevent="scrollToFocusedNote(didrkey)"
@click.prevent="scrollToFocusedNote({ noteId: didrkey })"
>
<div
class="title-stacked-note breadcrumbs text-sm"