diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-19 03:20:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-19 03:20:37 +0900 |
| commit | ad372c7cce1d4847b84e96039fffe438a9739b39 (patch) | |
| tree | cf0298df9a5a700ce902095cab0f2c2e1f06a030 /frontend | |
| parent | 98974136648935143298c0e0a01714bb146909f1 (diff) | |
| download | iosdc-japan-2025-albatross-ad372c7cce1d4847b84e96039fffe438a9739b39.tar.gz iosdc-japan-2025-albatross-ad372c7cce1d4847b84e96039fffe438a9739b39.tar.zst iosdc-japan-2025-albatross-ad372c7cce1d4847b84e96039fffe438a9739b39.zip | |
fix(frontend): fix submit result layout
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/components/Gaming/CodeBlock.tsx | 2 | ||||
| -rw-r--r-- | frontend/app/components/Gaming/SubmitResult.tsx | 4 |
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> |
