From b8e278664c1fa6d0656aec973d8dbd2063b1da48 Mon Sep 17 00:00:00 2001 From: Woojin Jung <44637040+jwoojin9@users.noreply.github.com> Date: Sun, 13 Oct 2024 00:02:53 +0900 Subject: [PATCH] fix(fe): prevent submission detail modal overflow (#2157) * fix(fe): prevent submission detail modal overflow * chore(fe): increase modal width --- .../@tabs/submission/_components/Columns.tsx | 2 +- .../_components/SubmissionDetailAdmin.tsx | 22 ++++++++++++------- .../_components/SubmissionColumns.tsx | 2 +- apps/frontend/components/DataTableAdmin.tsx | 2 +- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/apps/frontend/app/admin/contest/[id]/(overall)/@tabs/submission/_components/Columns.tsx b/apps/frontend/app/admin/contest/[id]/(overall)/@tabs/submission/_components/Columns.tsx index dc2a4a2ef4..4d41230892 100644 --- a/apps/frontend/app/admin/contest/[id]/(overall)/@tabs/submission/_components/Columns.tsx +++ b/apps/frontend/app/admin/contest/[id]/(overall)/@tabs/submission/_components/Columns.tsx @@ -51,7 +51,7 @@ export const columns: ColumnDef[] = [
+ {!loading && ( -
+

{submission?.user?.userProfile?.realName}( @@ -80,20 +80,26 @@ export default function SubmissionDetailAdmin({ {submission?.testcaseResult.length !== 0 && (
-

Test case

- +

Testcase

+
- Result - Runtime - Memory + + Result + + + Runtime + + + Memory + {submission?.testcaseResult.map((item) => ( - {item.id} + {item.id} [] = [
({ setIsSubmissionDialogOpen(false) }} > - +