diff --git a/src/styles/globals.css b/src/styles/globals.css index 4b142b3..9c3b27f 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -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 */