feat: modal now uses scrollbar-gutter (#2956)

* Update modal.css

When opening a modal window, the scrollbar disappears, but the content shifts

This padding automatically shifts the content to the left so that the user does not notice the content moving when the scrollbar disappears

Padding is equal to the standard scrollbar width

* Update modal.css

Added scrollbar-gutter
This commit is contained in:
Vadim Kiryanov 2024-04-05 00:44:41 +06:00 committed by GitHub
parent b1e7badc05
commit f05e85413a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -27,4 +27,5 @@
}
:root:has(:is(.modal-open, .modal:target, .modal-toggle:checked + .modal, .modal[open])) {
@apply overflow-hidden;
scrollbar-gutter: stable;
}