saicaca / fuwari

✨A static blog template built with Astro.
https://fuwari.vercel.app
MIT License
1.41k stars 326 forks source link

New features for TOC #216

Open foxton9 opened 3 weeks ago

foxton9 commented 3 weeks ago

Glad to know new toc was released.

As in https://github.com/saicaca/fuwari/pull/103, I'd like to focus solely on adding features rather than the TOC widget itself.

New features for the existing toc

  1. active headings indicator
  2. synchronization with page scrolling

I think the implementation needs further discussion, as I'm not fully satisfied with the current solution.

It seems there will be some updates for the TOC on mobile and its styling, so I haven't tested those cases.

msedge_PT8flRFaeF

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuwari-yags ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 3:21am
saicaca commented 1 week ago

Thanks a lot for your contribution! The features are great, but there are still some issues.

The logic of isPageReady may need to be revised:

https://github.com/user-attachments/assets/06906e21-b0b5-43de-8d96-59ad3816f683