Description
When the page uses scrollbar-gutter, the right margin fix introduced in v3.8.3 doesn't account for this.
This leads to extra spacing, effectively reintroducing the issue for users utilizing scrollbar-gutter.
Steps to reproduce
For Windows
For Mac
- Change the scrollbar behavior to always visible.
- Visit the https://fylgja.dev/library/base/
- Click on search bar
- Observe how the elements beneath the popup modal shift to the right.
Expected behavior
Only apply the margin right fix if the page is not using scrollbar-gutter on the html tag or make this margin right fix optional
Environment
- OS: Windows / Linux / macOS
- Browser: All browsers
- DocSearch version: 3.8.3 and newer
Relates to
Description
When the page uses
scrollbar-gutter, the right margin fix introduced in v3.8.3 doesn't account for this.This leads to extra spacing, effectively reintroducing the issue for users utilizing
scrollbar-gutter.Steps to reproduce
For Windows
For Mac
Expected behavior
Only apply the margin right fix if the page is not using
scrollbar-gutteron the html tag or make this margin right fix optionalEnvironment
Relates to