Skip to content

fix(theme): prevent outline from skipping short sections near page bottom (#5473) - #5498

Open
vidupulapatithrylokya wants to merge 3 commits into
vuejs:mainfrom
vidupulapatithrylokya:fix/issue-5473-outline-bottom-sections
Open

vidupulapatithrylokya wants to merge 3 commits into
vuejs:mainfrom
vidupulapatithrylokya:fix/issue-5473-outline-bottom-sections

Conversation

@vidupulapatithrylokya

@vidupulapatithrylokya vidupulapatithrylokya commented Oct 8, 2026 •

Copy link
Copy Markdown

Fixes #5473.

Description

When multiple short sections are located near the bottom of a page, scrolling to the bottom previously caused the right-side outline to jump directly to the final item, skipping intermediate items.

This fix:

  • Removes the forced last-item override at page bottom.
  • Smoothly moves the reference line downward only within the final viewport (maxScroll - innerHeight to maxScroll).
  • Preserves the existing scroll-spy behavior for the rest of the document.

@vidupulapatithrylokya vidupulapatithrylokya changed the title Fix/issue 5473 outline bottom sections fix(theme): prevent outline from skipping short sections near page bottom (#5473) Oct 15, 2026
@github-actions github-actions Bot added the stale label Nov 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Right-side outline skips short sections near the page bottom

1 participant