Ryan Kes
36b6a4551c
🐛 Fix smartTOC never highlighting on a page that can't scroll
...
getActiveAnchorId derives the active entry from scroll position alone,
so on a page short enough that scrollHeight never exceeds
window.innerHeight, the answer can never change. Clicking a TOC entry
still updates location.hash, but nothing ever picks it up as active.
Falls back to the hash when the page can't scroll, honoured only if
it names an entry the TOC actually lists. Pages that do scroll are
unaffected - this only fires when scroll position can't answer the
question at all.
Fixes #3087
2026-09-13 22:12:55 +01:00
Nuno Coração and Claude Fable 5
09f0573749
✨ v3 theme: glass UI, landing layout, a11y, perf, print styles
...
Floating glass header with ⌘K search, landing homepage layout with
hero image and GitHub-stars CTA, background canvas with dissolving
heroes, burufugu colour scheme, movie-quote 404, taxonomy pills,
keyboard/ARIA accessibility across menus, search and tabs, idle-
loaded third-party scripts, and dedicated print styles.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-08-17 20:19:02 +01:00
ZhenShuo Leo
8ab8807398
feat: better mobile menu
2025-12-27 17:32:00 +08:00
ZhenShuo Leo
2c6a95a755
fix(toc): incorrect active link in short paragraph
2025-10-11 15:19:35 +08:00
ZhenShuo Leo
58b7a6be39
style(toc): add padding to the end
...
This improves appearance in chrome and safari
and fixes content being blocked in firefox
2025-08-22 03:34:02 +08:00
ZhenShuo Leo
41f6b37e56
refactor(tailwind): use logical properties for language direction
2025-08-22 03:34:02 +08:00
Nuno Coração
f2e224a042
pretty run
2025-06-17 23:17:26 +01:00
ZhenShuo Leo
e6f0522b60
🐛 fix(toc): prevent active state loss from dynamically loaded content
2025-06-04 13:52:01 +08:00
ZhenShuo Leo
4ca31fadca
🐛 fix: toc child not collapsed
2025-06-04 12:18:33 +08:00
ZhenShuo Leo
c59cb293bf
✨ Feat: Prevent ToC flicker on initial load
...
Use CSS to control ToC height instead of JavaScript to prevent flickering.
2025-05-05 08:30:34 +08:00
Nuno Coração
ad9ab104db
final polish
2024-06-19 17:37:35 +01:00
Nuno Coração
d9ef1b8fb6
polish
2024-06-10 17:09:08 +01:00
Nuno Coração
a59a7e4fbf
polish
2024-06-10 17:08:31 +01:00
Nuno Coração
0efede2f1d
fix https://github.com/nunocoracao/blowfish/issues/1474
2024-06-10 12:07:42 +01:00
Sakari
49e83b148c
fix: CJK characters in TOC scroll indicator
2024-04-29 15:28:34 +08:00
v20100v
e1f6607def
✨ Zen-mode feature
2023-12-19 11:23:25 +01:00
Nuno Coração
a194975889
✨ Page indicator in navigation bar
2023-01-14 23:50:34 +00:00
Nuno Coração
62dbfc51c5
✨ Progress Indicator in TOC
2023-01-14 23:05:10 +00:00
Nuno Coração
893aa17abc
fixed UI details across layouts
2022-10-15 23:14:35 +01:00
Nuno Coração
2ad4756f31
improved usability of TOC on mobile
2022-10-04 15:37:27 +01:00
Nuno Coração
8fbdecb6e7
initial commit
2022-09-10 20:05:37 +01:00