style: add scrollbar-gutter to prevent layout shift
- Implement `scrollbar-gutter: stable` in global CSS - Prevent layout shifts when scrollbar appears or disappears
This commit is contained in:
parent
431e61d2a5
commit
d34e4b8ed6
@ -50,6 +50,11 @@
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
/* prevent the layout from shifting when the scrollbar appears or disappears. */
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user