vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
12.9k stars 2.08k forks source link

Outline marker does not move to correct item #3878

Open zqianem opened 5 months ago

zqianem commented 5 months ago

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 commented 5 months ago

Possibly a duplicate of #3449