-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
right nav highlighting jumps to end #157
Comments
@neuromusic This is because if the content is short enough, it'll default to the last item. This is to mirror the behavior of the current theme for napari.org: napari-org-scroll.mp4You can also see the same issue on the About Team page for napari: Another thing we could do is implement it similar to Docusaurus, but it means that if the last section's content is long enough, then it'll never get highlighted: docusaurus-scrolling.mp4I guess ultimately, what should be the correct behavior for the last section when content isn't long enough? cc: @liaprins-czi |
@liaprins-czi I also tagged you in case you had an idea on what the behavior should be 😃 |
Just FYI, that is just how the default functionality of the theme we are using (temporarily) is, but it was not intentionally chosen to be that way (by me, at least, lol). When implementing the final napari.org design, it should match the hub design, however we end up doing it: The way I'd want it to act might be a conflict of two competing functionalities, so might not be possible but let me know:
And it does seem that is what it is doing now in the hub! When you click a section, it also adds that section's URL#hash, which I also expect. The one thing that seems buggy to me is if I am using very tall window and I:
|
from June 2020 pre-launch bug bash
Created by: justin
Description
when I click the next-to-last item on the right nav, if the last two sections are short, the last item gets highlighted. this happens on the about page as well as plugin pages
Info
Bug source: wide
Browser: chrome
PR: none
Attachments
https://dl.airtable.com/.attachments/f1adb5121031e79c3bdb51bfc8e8d8b7/c9fe1aa4/image.png
The text was updated successfully, but these errors were encountered: