Skip to content

Commit 573b863

Browse files
committed
Use more padding and set max default content width in React and Console panels from Output tab
1 parent d21e5e6 commit 573b863

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/ConsolePanel.res

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ let make = (~logs, ~appendLog) => {
2525
<h2 className="font-bold text-gray-5/50 absolute right-2 top-2"> {React.string("Console")} </h2>
2626
{switch logs {
2727
| [] =>
28-
React.string(
29-
"Add some 'Console.log' to your code and click 'Run' or enable 'Auto-run' to see your logs here.",
30-
)
28+
<p className="p-4 max-w-prose">
29+
{React.string(
30+
"Add some 'Console.log' to your code and click 'Run' or enable 'Auto-run' to see your logs here.",
31+
)}
32+
</p>
3133
| logs =>
3234
let content =
3335
logs

src/RenderPanel.res

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ let make = (~validReact) => {
44
<h2 className="font-bold text-gray-5/50 absolute right-2 top-2"> {React.string("React")} </h2>
55
{validReact
66
? React.null
7-
: React.string(
8-
"Create a React component called 'App' if you want to render it here, then click 'Run' or enable 'Auto-run'.",
9-
)}
7+
: <p className="p-4 max-w-prose">
8+
{React.string(
9+
"Create a React component called 'App' if you want to render it here, then click 'Run' or enable 'Auto-run'.",
10+
)}
11+
</p>}
1012
<div className={validReact ? "h-full" : "h-0"}>
1113
<EvalIFrame />
1214
</div>

0 commit comments

Comments
 (0)