Skip to content

Commit 876486a

Browse files
committed
fix playground
1 parent 53682b0 commit 876486a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

app/routes/TryRoute.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let default = () => {
6161
{switch data {
6262
| Some({bundleBaseUrl, versions}) => <ClientOnly bundleBaseUrl versions />
6363
| None =>
64-
<div className="text-xl text-red-500 self-center">
64+
<div className="mt-16 p-5 text-xl text-red-500 self-center">
6565
<h1> {React.string("Oops an error occurred!")} </h1>
6666
{React.string("The playground cannot be loaded, please try again in a few moments.")}
6767
</div>

src/Playground.res

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,6 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
18021802
let subPanelRef = React.useRef(Nullable.null)
18031803

18041804
let onResize = () => {
1805-
Console.debug("resizing playground...")
18061805
let newLayout = window.innerWidth < breakingPoint ? Column : Row
18071806
setLayout(_ => newLayout)
18081807
switch panelRef.current->Nullable.toOption {
@@ -2012,7 +2011,7 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
20122011
<button key={Int.toString(i)} onClick className disabled> {title} </button>
20132012
})
20142013

2015-
<main className={"flex flex-col bg-gray-100 text-gray-40 text-14 h-100"}>
2014+
<main className={"flex flex-col bg-gray-100 text-gray-40 text-14"}>
20162015
<ControlPanel
20172016
actionIndicatorKey={Int.toString(actionCount)}
20182017
state=compilerState
@@ -2021,7 +2020,7 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
20212020
editorRef
20222021
/>
20232022
<div
2024-
className={`flex bg-gray-100 ${layout == Column ? "flex-col" : "flex-row"}`}
2023+
className={`flex ${layout == Column ? "flex-col" : "flex-row"}`}
20252024
ref={ReactDOM.Ref.domRef((Obj.magic(panelRef): React.ref<Nullable.t<Dom.element>>))}
20262025
>
20272026
// Left Panel

0 commit comments

Comments
 (0)