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

fix:docs sidebar nav item scroll into view:#6551 #6552

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abhishek1886
Copy link

Fixed the sidebar nav on docs page not scrolling into view on page refresh.

Exported the sidebar nav item Link into a mew component.
Used scrollTo method to dynamically scroll the sidebar nav item into view when it isnt in view as scrollIntoView method was scrolling the main content element as well.
Added behaviour "smooth". I could replace it with "instant" if required.

Copy link

vercel bot commented Feb 3, 2025

@abhishekdeepmindz is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

2 participants