Local navigation dropdown misplaced without sidebar #4359
Labels
bug
Something isn't working
contribution welcome
The team would welcome a contribution from the community for this issue
theme
Related to the theme
Describe the bug
When a site has no sidebar, the local navigation dropdown is incorrectly positioned.
It appears to be offset to the right by the sidebar width, even though there is no sidebar present.
vitepress/src/client/theme-default/components/VPLocalNavOutlineDropdown.vue
Lines 161 to 167 in d200f4e
Reproduction
https://stackblitz.com/edit/vite-dxfigx?file=docs%2F.vitepress%2Fconfig.ts
Expected behavior
When there is no sidebar, the dropdown should still appear directly below the "On this page" text, aligned as shown in the image.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: