executablebooks / sphinx-book-theme

A clean book theme for scientific explanations and documentation with Sphinx
https://sphinx-book-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
439 stars 201 forks source link

Right navbar column skips the section clicked #853

Open dylanh724 opened 3 months ago

dylanh724 commented 3 months ago

Describe the bug

context When I click a right column child header, it skips to the section above or below my cursor and awkwardly highlights the incorrect section:

firefox_TzsPDODW5T

expectation When I click on a header anchor link on the right column nav, I expect it to go straight there and highlight the correctly selected link.

bug Perhaps it has to do with smoothing scripts?

Reproduce the bug

Repro'd via your own release notes: Try clicking around the right nav (in Firefox desktop, at least) - it goes wild:

firefox_OpQkqUztHb

List your environment

No response

dylanh724 commented 3 months ago

To add: The body anchors appropriately as expected; it's just the highlighted navbar item. Since the bug repro'd live on your site, it should be pretty easy to play with.

dylanh724 commented 2 months ago

Heya, know anything about this @gregcaporaso ?

dylanh724 commented 2 months ago

This can partially be repro'd on PyData:

https://pydata-sphinx-theme.readthedocs.io/en/stable/examples/kitchen-sink/admonitions.html#attention

However, this one only goes +1 up; it won't go +1 down. Still probably the same cause, though.