John O'Keefe
da0bae94bb
docs(ui): scroll the sidebar so the active (bold) link is in view on load
...
Deep-linking into a low doc (e.g. ratings/get_ratings from the overview
page) opened the right menus but sat the highlight below the sidebar's
visible scroll area. scrollSidebarToActive() runs at docs Alpine init:
finds the link for the current path, and if it's outside the sidebar's
scrollport, moves ONLY the sidebar's own scrollTop to clamp it into the
nearest edge — never the page scroll. Skips the off-canvas mobile
drawer. (Same behavior as Docusaurus/MkDocs on deep links.)
Live: x-init wired on docs pages, function in the shipped bundle,
make test green, 146 vitests.
2026-10-24 21:57:03 -04:00
..
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-13 12:24:12 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 16:38:03 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-18 18:02:34 -04:00
2026-10-15 19:33:18 -04:00
2026-10-15 19:33:18 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-23 11:06:42 -04:00
2026-10-24 19:44:34 -04:00
2026-10-19 15:43:59 -04:00
2026-10-24 19:44:34 -04:00
2026-10-23 12:30:12 -04:00
2026-05-24 21:20:24 -04:00
2026-03-27 15:52:02 -04:00
2026-10-24 19:44:34 -04:00
2026-10-20 15:36:31 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-19 15:43:59 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-19 15:43:59 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:42:50 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 16:45:48 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 14:31:36 -04:00
2026-10-24 21:57:03 -04:00
2026-10-24 21:57:03 -04:00
2026-10-24 19:44:34 -04:00
2026-08-10 13:43:13 -04:00
2026-10-24 19:44:34 -04:00
2026-10-19 18:59:36 -04:00
2026-10-24 19:44:34 -04:00
2026-08-05 16:45:02 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:07 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 13:16:35 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 16:45:48 -04:00
2026-10-24 19:44:34 -04:00
2026-10-22 15:01:41 -04:00
2026-10-24 19:44:34 -04:00
2026-08-05 16:45:02 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-24 19:44:34 -04:00
2026-10-21 20:21:07 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-08-05 16:45:02 -04:00
2026-08-05 16:45:02 -04:00
2026-10-24 19:44:34 -04:00
2026-10-19 12:39:20 -04:00
2026-10-03 23:54:07 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 12:08:20 -04:00
2026-10-18 12:08:07 -04:00
2026-10-18 12:08:07 -04:00
2026-10-18 12:08:07 -04:00
2026-10-24 19:44:34 -04:00
2026-05-10 16:13:21 -04:00
2026-10-24 14:31:36 -04:00
2026-10-24 19:44:34 -04:00
2026-10-18 16:00:04 -04:00
2026-10-19 18:59:36 -04:00
2026-10-24 14:31:36 -04:00