Skip to content

feat: active outline link scroll to page center - #4634

Closed
btea wants to merge 2 commits into
vuejs:mainfrom
btea:feat/load-page-outline-link-scroll-to-center
Closed

feat: active outline link scroll to page center#4634
btea wants to merge 2 commits into
vuejs:mainfrom
btea:feat/load-page-outline-link-scroll-to-center

Conversation

@btea

@btea btea commented Mar 19, 2025

Copy link
Copy Markdown
Contributor

Description

When I clicked a link to jump to the page, the page content was centered according to the hash, but the active links in the sidebar did not scroll to the middle of the page, resulting in the inability to find the corresponding outline link for a while.

https://vitest.dev/guide/cli.html#testtimeout

Linked Issues

Additional Context


Tip

The author of this PR can publish a preview release by commenting /publish below.

@github-actions github-actions Bot added the stale label May 10, 2025
@btea

btea commented Jun 11, 2025

Copy link
Copy Markdown
Contributor Author

@brc-dd Do you think this modification is necessary?

@brc-dd
brc-dd force-pushed the main branch 2 times, most recently from c5a8428 to 8abbe29 Compare August 14, 2025 03:45
@brc-dd
brc-dd force-pushed the main branch 2 times, most recently from 084cf43 to d3a1567 Compare August 20, 2025 14:41
@brc-dd brc-dd removed the stale label Jan 31, 2026
@brc-dd
brc-dd force-pushed the main branch 3 times, most recently from 15a0278 to 09af6c7 Compare March 26, 2026 04:26
@github-actions github-actions Bot added the stale label Jun 27, 2026
@bluwy

bluwy commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

This should be covered in #5377 now which will scroll to nearest into view instead of center.

@bluwy bluwy closed this Aug 20, 2026
@btea

btea commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Looks great. 👍

@btea
btea deleted the feat/load-page-outline-link-scroll-to-center branch August 20, 2026 08:06
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.

3 participants