@@ -765,7 +765,7 @@ module WarningFlagsWidget = {
Option.map(suggestions, elements =>
>))}
- className="p-2 absolute overflow-auto z-50 border-b rounded border-l border-r block w-full bg-gray-100 max-h-60"
+ className="p-2 absolute overflow-auto playground-scrollbar z-50 border-b rounded border-l border-r block w-full bg-gray-100 max-h-60"
>
elements
@@ -1523,6 +1523,12 @@ let make = (~bundleBaseUrl: string, ~versions: array
) => {
let (searchParams, _) = ReactRouter.useSearchParams()
let containerRef = React.useRef(Nullable.null)
let editorRef: React.ref> = React.useRef(None)
+ let (_, setScrollLock) = ScrollLockContext.useScrollLock()
+
+ React.useEffect(() => {
+ setScrollLock(_ => true)
+ None
+ }, [])
let versions =
versions
@@ -1990,7 +1996,7 @@ let make = (~bundleBaseUrl: string, ~versions: array) => {
{title}
})
-
+
) => {
// Left Panel
>))}
- className={`overflow-scroll ${layout == Column ? "h-2/4" : "h-full!"} ${layout == Column
- ? "w-full"
- : "w-[50%]"}`}
+ className={`overflow-scroll playground-scrollbar ${layout == Column
+ ? "h-2/4"
+ : "h-full!"} ${layout == Column ? "w-full" : "w-[50%]"}`}
>
) => {
>))}
- className="overflow-auto"
+ className="overflow-auto playground-scrollbar"
>
code {
@apply text-fire;
}