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:
parent
b1e7badc05
commit
f05e85413a
|
@ -27,4 +27,5 @@
|
|||
}
|
||||
:root:has(:is(.modal-open, .modal:target, .modal-toggle:checked + .modal, .modal[open])) {
|
||||
@apply overflow-hidden;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue