Open stavros-k opened 2 years ago
Last time we turned on autoscrolling for the TOC, it opened a can of worms and was eventually reverted. I'm not confident to say that this would work, but I don't think it hurts to try.
Last time we turned on autoscrolling for the TOC, it opened a can of worms and was eventually reverted. I'm not confident to say that this would work, but I don't think it hurts to try.
By just uncommenting the line, it didn't work. Didn't looked into it much tho.
Isn't it also supposed to work for ToC only? Or that affects the sidebar also?
No—the two are independent. I'm saying the entire thing about autoscrolling is likely not going to work on some platforms. We need to experiment.
No—the two are independent. I'm saying the entire thing about autoscrolling is likely not going to work on some platforms. We need to experiment.
I see, thanks for clearing that up!
Can confirm this still an issue on Docusaurus v2.4.1. The sidebar correctly highlights the active doc but it appears offscreen vertically at 1080p. I would expect it to autoscroll to the active doc.
Original example URL is dead so here's a new one: https://developer.redis.com/howtos/moviesdatabase/sampleapp/
This website (Jekyll-based I believe) demonstrates the expected behaviour: https://www.sketch.com/docs/sharing-and-permissions/permissions-directory/
@bentookey-yotta , how did you solve this on your site?
We haven't! The issue is still present in Docusaurus v3.4.0. As all the links seem dead or changed, here's another example for the thread.
While the doc is highlighted correctly in the sidebar, the sidebar doesn't scroll to its position, so it remains offscreen.
Thank you very much for your answer. It seemed to work on your site as I followed the link, but I just had the complete TOC on the screen.
I found some additional info in this thread: https://github.com/facebook/docusaurus/issues/823 Maybe the featured script will work.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When there is a long list of items in side bar, when you visit an item via a direct link, it should scroll the sidebar to the selected item.
Example: Visit this link https://truecharts.org/docs/charts/stable/plex
A user won't know that there are 2 sub items there, until scrolls down to the said item.
It should also scroll to the selection if visit that item from a search result as well
This is probably a feature request, but I cannot login to the Canny board. Either by gh oath or by mail. It shows error 400 on the console
Reproducible demo
No response
Steps to reproduce
plex
item.Expected behavior
Sidebar should scroll to the
plex
itemActual behavior
Sidebar stays to the top
Your environment
Self-service