mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: apply overflow-y: scroll to <html /> (#21988)
This commit is contained in:
+5
-6
@@ -100,6 +100,10 @@
|
||||
@apply border-border;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
/*
|
||||
By default, Radix adds a margin to the `body` element when a dropdown is displayed,
|
||||
causing some shifting when the dropdown has a full-width size, as is the case with the mobile menu.
|
||||
@@ -110,12 +114,7 @@
|
||||
*/
|
||||
html body[data-scroll-locked] {
|
||||
--removed-body-scroll-bar-size: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* Prevent layout shift when modals open by maintaining scrollbar width */
|
||||
html {
|
||||
scrollbar-gutter: stable;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user