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

Outline marker does not move to correct item #3878

Open
4 tasks done
zqianem opened this issue May 10, 2024 · 1 comment · May be fixed by #3879
Open
4 tasks done

Outline marker does not move to correct item #3878

zqianem opened this issue May 10, 2024 · 1 comment · May be fixed by #3879
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@zqianem
Copy link
Contributor

zqianem commented May 10, 2024

Describe the bug

When navigating the page with the outline, the outline marker does not move to the correct item when the target header is close to the end of the page but not the last item.

Reproduction

Visit https://vitepress.dev/reference/runtime-api and try to click on "$frontmatter" in the right-side outline.

Expected behavior

The outline marker moves next to "$frontmatter" instead of "$params".

System Info

A browser with a minimum size of 1280px x 974px (width x height)

Additional context

No response

Validations

@zqianem zqianem added the bug: pending triage Maybe a bug, waiting for confirmation label May 10, 2024
@zqianem zqianem changed the title Outline marker does not move on click in certain cases Outline marker does not move to correct item May 10, 2024
zqianem added a commit to zqianem/vitepress that referenced this issue May 11, 2024
@zqianem zqianem linked a pull request May 11, 2024 that will close this issue
zqianem added a commit to zqianem/vitepress that referenced this issue May 11, 2024
@zqianem
Copy link
Contributor Author

zqianem commented May 11, 2024

Possibly a duplicate of #3449

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

Successfully merging a pull request may close this issue.

1 participant