[playground] Fix errors not wrapping
Lauren Tan committed
Feb 1, 2023 at 13:17 UTC
f53318d0ba2b72335236d0b658016eb284dad710
1 file changed
+2
-2
compiler/forget/packages/playground/components/Editor/Output.tsx
+2
-2
@@ -193,12 +193,12 @@ function Output({ store, compilerOutput }: Props) {
193
<div className="w-full p-4 basis-full border-b">
194
<h2>COMPILER ERRORS</h2>
195
</div>
196
- <pre
196
+ <code
197
className="p-4 basis-full text-red-600 overflow-x-hidden"
198
style={{ maxHeight: "20vh" }}
199
>
200
{compilerOutput.error.toString()}
201
- </pre>
201
+ </code>
202
</div>
203
) : null}
204
</>