mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-09-14 13:51:56 +02:00
fix(ui): reserve scrollbar space to prevent layout shift
This commit is contained in:
@@ -89,6 +89,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@layer base {
|
||||||
|
/* Always reserve space for the scrollbar so content doesn't shift when it appears.
|
||||||
|
`html:root` outranks daisyUI's `:root` rule, which resets the gutter to `unset`
|
||||||
|
unless a modal/drawer is open. */
|
||||||
|
html:root {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
.textarea {
|
.textarea {
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
|
|||||||
Reference in New Issue
Block a user