We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the vertical scroll bar appears in some long content pages, the page width changes, which results in a bad user experience.
Maybe add placeholder space for the scrollbar?
https://vitepress.dev/reference/default-theme-carbon-ads
compare to
https://vitepress.dev/reference/default-theme-search
the content width don't be changed, which means the toc's and nav bar's position will not change.
all
No response
The text was updated successfully, but these errors were encountered:
Here is an article describing this.
Sorry, something went wrong.
Duplicate of #1054
Got it, thanks.
For others encountering this issue, I share my way to "fix" it.
/* .vitepress/theme/custom.css */ html { overflow-y: scroll; } body::-webkit-scrollbar{ width:10px; height:10px; } body::-webkit-scrollbar-track{ background: #fff; border-radius:2px; } body::-webkit-scrollbar-thumb{ background: #bfbfbf; border-radius:10px; } body::-webkit-scrollbar-thumb:hover{ background: #333; } body::-webkit-scrollbar-corner{ background: #179a16; }
No branches or pull requests
Describe the bug
When the vertical scroll bar appears in some long content pages, the page width changes, which results in a bad user experience.
Maybe add placeholder space for the scrollbar?
2024-09-19.17-40-23.mp4
Reproduction
https://vitepress.dev/reference/default-theme-carbon-ads
compare to
https://vitepress.dev/reference/default-theme-search
Expected behavior
the content width don't be changed, which means the toc's and nav bar's position will not change.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: