refactor: remove scrollbar hiding styles and adjust overflow for scroll-locked state
This commit is contained in:
parent
3a81a96316
commit
cb7743fe07
@ -380,18 +380,10 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide scrollbar for layout shift when using the theme selector
|
||||
*/
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for IE, Edge and Firefox */
|
||||
* {
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
/* https://github.com/shadcn-ui/ui/issues/4227#issuecomment-2438290165 */
|
||||
html body[data-scroll-locked] {
|
||||
overflow: visible !important;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
/* Fix for Fumadocs empty banner appearing in Cloudflare Worker */
|
||||
|
Loading…
Reference in New Issue
Block a user