fix: scrollbar gutter shifting issue

This commit is contained in:
2026-07-01 17:28:25 +05:30
parent b1174c8825
commit 1a94ff80e6
3 changed files with 7 additions and 7 deletions

View File

@@ -122,16 +122,12 @@
}
@layer base {
html {
scrollbar-gutter: stable;
}
html:has(body[data-scroll-locked]) {
scrollbar-gutter: auto;
}
@supports not (scrollbar-gutter: stable) {
html {
.scroll-stable {
overflow-y: scroll;
}
}
@@ -143,4 +139,8 @@
body {
@apply bg-background text-foreground;
}
.scroll-stable {
scrollbar-gutter: stable;
}
}