aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/components/Gaming/CodeBlock.tsx2
-rw-r--r--frontend/app/components/Gaming/SubmitResult.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx
index bca8727..fc14b63 100644
--- a/frontend/app/components/Gaming/CodeBlock.tsx
+++ b/frontend/app/components/Gaming/CodeBlock.tsx
@@ -13,7 +13,7 @@ export default function CodeBlock({ code, language }: Props) {
const highlighted = highlight(code, languages[language]!, language);
return (
- <pre className="h-full w-full p-2 bg-white rounded-lg border border-gray-300 whitespace-pre-wrap break-words resize-none">
+ <pre className="h-full w-full p-2 bg-white rounded-lg border border-gray-300 whitespace-pre-wrap break-words">
<code dangerouslySetInnerHTML={{ __html: highlighted }} />
</pre>
);
diff --git a/frontend/app/components/Gaming/SubmitResult.tsx b/frontend/app/components/Gaming/SubmitResult.tsx
index 5b08ef1..6f4cb0e 100644
--- a/frontend/app/components/Gaming/SubmitResult.tsx
+++ b/frontend/app/components/Gaming/SubmitResult.tsx
@@ -38,12 +38,12 @@ export default function SubmitResult({ result, submitButton }: Props) {
<div className="grow p-2">
<BorderedContainer>
<div className="font-semibold">{r.label}</div>
- <div>
+ <pre className="overflow-y-hidden max-h-96 whitespace-pre-wrap break-words">
<code>
{r.stdout}
{r.stderr}
</code>
- </div>
+ </pre>
</BorderedContainer>
</div>
</li>