-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
The title bar does not completely cover sidebar texts #962
Comments
Device Resolution: 2560 × 1600 Execute: {clientWidth: document.documentElement.clientWidth, innerWidth: window.innerWidth, innerWidthScreen: screen.innerWidth, devicePixelRatio:window.devicePixelRatio} Result: {
"clientWidth": 1425,
"innerWidth": 1440,
"devicePixelRatio": 2
} |
I wrote two functions to calculate the padding: let paddingLeftTitle = (width,scrollbarWidth) => (width-scrollbarWidth-Math.min(1376,width-scrollbarWidth-64))/2
let paddingLeftSidebar = (width,scrollbarWidth) => (width-scrollbarWidth-1376)/2 For For |
Changing this seems to fix this:
padding-left: max(32px, calc((100% - (var(--vp-layout-max-width) - 64px)) / 2)); Check if this works fine for you too. |
Yes, it works! |
Co-authored-by: ObjectKaz <[email protected]>
Describe the bug
The title bar can not completely cover sidebar texts.
Reproduction
pnpm install
pnpm build
pnpm docs-dev
Guide
Expected behavior
The title bar can completely cover the sidebar text.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: