Commit Graph

15 Commits

Author SHA1 Message Date
Julien Calixte
c00065ce4a 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>
2026-04-26 09:56:32 +02:00
Julien Calixte
4ce8c30649 fix(navigation): support anchor fragments in note links
Links like `path/to/note.md#heading` previously errored with "Note not
found" because the full href (including `#hash`) was matched against
file paths. Split the fragment off in the link handler, plumb it through
the event bus, and scroll the matching heading into view once the
target note is in place. Headings now get GitHub-style ids via
markdown-it-anchor + github-slugger so the anchors actually exist.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 09:40:30 +02:00
Julien Calixte
5f48aa5690 chore: lint and fmt 2026-03-28 09:38:55 +01:00
Julien Calixte
330bc5b41d fix: scroll to stacked note on title click
- Pass didrkey (with colons) instead of classNameId to scrollToFocusedNote in StackedPublicNote, so findIndex matches the URL-stored ID
- Revert includes() to strict === in findIndex for semantic correctness
2026-03-16 18:49:21 +01:00
Julien Calixte
1dffab12df fix: no : in class names 2026-02-21 19:37:36 +01:00
Julien Calixte
5bad66884f fix: scroll to note 2026-02-19 17:36:44 +01:00
Julien Calixte
8e754021bd fix: better mobile usage 2026-02-15 19:43:22 +01:00
Julien Calixte
bf73f08cb2 refactor: unify NOTE_WIDTH constant with --note-width CSS variable
Read note width from the CSS custom property at runtime (cached on first
call) instead of duplicating the value in a JS constant.
2026-02-15 09:09:20 +01:00
Julien Calixte
178d80a872 feat: scroll to main on breadcrumb link 2025-07-09 23:24:52 +02:00
Julien Calixte
6f3c7d16ff fix: font family is the same for notyf 2025-06-08 17:26:19 +02:00
Julien Calixte
9f0e6007a2 try to hotfix the not autofocus 2023-12-28 17:17:14 +01:00
Julien Calixte
4adaad8683 lower timeout time 2023-09-09 20:45:43 +02:00
Julien Calixte
49d2571f5f create today fleeting note 2023-08-27 17:50:42 +02:00
Julien Calixte
a43004ea1c Merge branch 'main' of github.com:lite-note/lite-note 2023-08-17 20:20:03 +02:00
Julien Calixte
43b99eed52 refacto to use ref route query 2023-08-15 01:08:08 +02:00