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

Opening or navigating to sidebar links should focus/scroll to the sidebar item #4296

Open
4 tasks done
shinebayar-g opened this issue Oct 17, 2024 · 0 comments
Open
4 tasks done
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@shinebayar-g
Copy link

shinebayar-g commented Oct 17, 2024

Describe the bug

Opening or navigating to sidebar links should focus the sidebar item. (Similar to VSCode's "explorer.autoReveal": true setting) Currently if sidebar is really long or out of the view port, it's not possible to know where I'm at.

Reproduction

Example 1

Example 2

Expected behavior

Opening sidebar link should focus on the sidebar item. If sidebar is long, it should scroll down the sidebar scroll position.
Example: Opening this page would automatically scroll down the sidebar position https://learn.microsoft.com/en-us/dotnet/fsharp/tutorials/type-providers/troubleshooting-type-providers

System Info

npmPackages:
    vitepress: 1.4.1 => 1.4.1

Additional context

Not sure if it should be considered as a feature request.

Validations

@shinebayar-g shinebayar-g added the bug: pending triage Maybe a bug, waiting for confirmation label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant