Skip to content
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

Sidebar menu reloads to the top and user has to scroll down to find an item #257

Open
andreamussap opened this issue Apr 21, 2020 · 9 comments
Milestone

Comments

@andreamussap
Copy link

In a long sidebar menu, when the user wants to navigate in a doc set, which is way down in the menu structure, every time the user clicks a menu item, the entire menu is reloaded (??) to the top.
Then, the user has to scroll all the way down in the menu to find the item that they've just clicked.

https://www.loom.com/share/a259028d884d40ec96b98cc2165d6df8

It's tiring and confusing having to scroll down the menu every time that you click an item. So I'd like to ask if you could show/stuck the menu where the user is, like for example, on MS docs, no matter how long the menu is, it always shows the part of the menu where I am navigation at the moment.

See screenshot below, although I'm way down in the menu, it didn't scrolled to the top, it's stuck, showing the part where I am navigating. If I click any item inside 'Database sharding', the menu stays where it its, I don't have to scroll to find the item that I had clicked.

Docsy_SidebarMSexample

BTW, Docsy is an amazing project, guys. Thank you!!

@alexearnshaw
Copy link
Contributor

@LisaFC A couple of our users have reported this problem now for our Docsy site https://axway-open-docs.netlify.app/docs/

I presume it's only an issue for larger sites like ours with a long left navigation? Any suggestions what might be causing it/how we can fix?

@prdsoftware
Copy link

Yep, I've noticed this also. It's not friendly at all. Is there any setting / fix that can be done?

@Prachi-Srivastava-13
Copy link

We are also facing this issue in our internal site based off of docsy. Its pain to navigate through the pages with scroller being reset to the top. Can we have a fix for this?

@narrenfrei
Copy link
Contributor

I had already made a working solution (mentioned in #348) for this issue in my pipeline, but I'm afraid that this tweak got lost by some code merging problems. The only fragment of my code I can find is here: narrenfrei@09fb143

I can take once more a look on this issue, but I'm afraid I won't find time in the next 2 weeks. But if anyone else wants to build a PR it's fine for me.

@jshaughn
Copy link

This is also a problem for us on kiali.io. We moved to folding but actually that doesn't solve the problem, as even without scrolling the folded menus re-fold, likely due to a similar page refresh issue. Would love to see "sticky" behavior in either an expanded or folded left menu.

fekete-robert added a commit to fekete-robert/docsy that referenced this issue May 25, 2022
Useful when the left-side toc is longer than the screen.
Fixes google#348 and google#257

This is an update of the original patch of narrenfrei
@huanlin
Copy link
Contributor

huanlin commented Aug 9, 2023

FYI, I've post my solution here: #348 (comment)

@fekete-robert
Copy link
Collaborator

@huanlin 's solution worked for me.

@chalin chalin added this to the 23Q3 milestone Aug 17, 2023
@chalin
Copy link
Collaborator

chalin commented Aug 17, 2023

I've added this to the 23Q3 milestone. I'll take a closer look after #1661 is addressed.

@chalin chalin modified the milestones: 23Q3, 23Q4 Nov 3, 2023
@chalin chalin modified the milestones: 23Q4, 24Q1 Jan 11, 2024
@chalin chalin modified the milestones: 24Q1, 24Q2 Apr 2, 2024
@roberthbailey
Copy link
Member

This would be a really nice feature for a site with a long left-side TOC such as agones.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants