From 60d3bffaf7cbf208a01b839cfb03a73d15e14aad Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 24 Nov 2025 15:46:13 +0100 Subject: [PATCH 1/3] Fix white playground border --- src/Playground.res | 12 +++++++----- styles/main.css | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/src/Playground.res b/src/Playground.res index aaab4cb96..c02d9057f 100644 --- a/src/Playground.res +++ b/src/Playground.res @@ -364,7 +364,7 @@ module ResultPane = { ~focusedRowCol: option<(int, int)>=?, ~result: FinalResult.t, ) => -
+
{renderTitle(result)}
@@ -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
@@ -1932,7 +1932,9 @@ let make = (~bundleBaseUrl: string, ~versions: array) => { }) -
+
) => { // Left Panel
>))} - className={`overflow-scroll ${layout == Column ? "h-2/4" : "h-full!"} ${layout == Column + className={`overflow-scroll playground-scrollbar ${layout == Column ? "h-2/4" : "h-full!"} ${layout == Column ? "w-full" : "w-[50%]"}`} > @@ -2003,7 +2005,7 @@ let make = (~bundleBaseUrl: string, ~versions: array) => {
>))} - className="overflow-auto" + className="overflow-auto playground-scrollbar" > code { @apply text-fire; } From 42fc719f9bbaa5bdf07a89c4717599ce149a693d Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 24 Nov 2025 16:37:19 +0100 Subject: [PATCH 2/3] Remove unnecessary outer scrollbar --- src/Playground.res | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Playground.res b/src/Playground.res index 1c0bb1726..4f58d0419 100644 --- a/src/Playground.res +++ b/src/Playground.res @@ -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,9 +1996,7 @@ let make = (~bundleBaseUrl: string, ~versions: array) => { }) -
+
) => { // Left Panel
>))} - className={`overflow-scroll playground-scrollbar ${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%]"}`} >
Date: Mon, 24 Nov 2025 17:47:06 +0100 Subject: [PATCH 3/3] No overflow rules needed on main --- src/Playground.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Playground.res b/src/Playground.res index 4f58d0419..36ff328c4 100644 --- a/src/Playground.res +++ b/src/Playground.res @@ -1996,7 +1996,7 @@ let make = (~bundleBaseUrl: string, ~versions: array) => { }) -
+