mirror of
https://github.com/coder/coder.git
synced 2026-10-29 17:44:33 +08:00
This reverts commit 5224387c5a.
This is causing layout shifts to `0,0` when attempting to open
dropdowns. Something more battle-tested is needed unfortunately, Radix +
Scrollgutters is really annoying.
This commit is contained in:
+6
-5
@@ -100,10 +100,6 @@
|
|||||||
@apply border-border;
|
@apply border-border;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
By default, Radix adds a margin to the `body` element when a dropdown is displayed,
|
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.
|
causing some shifting when the dropdown has a full-width size, as is the case with the mobile menu.
|
||||||
@@ -114,7 +110,12 @@
|
|||||||
*/
|
*/
|
||||||
html body[data-scroll-locked] {
|
html body[data-scroll-locked] {
|
||||||
--removed-body-scroll-bar-size: 0;
|
--removed-body-scroll-bar-size: 0;
|
||||||
margin-right: 0 !important;
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Prevent layout shift when modals open by maintaining scrollbar width */
|
||||||
|
html {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user