Skip to content

Page shifts when opening the Search modal when using scrollbar-gutter #2546

@GrimLink

Description

@GrimLink

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions