From 17d825bc5dfd951d503d29bf29cb9d0dd8205687 Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Fri, 13 Oct 2023 05:29:05 +0700 Subject: [PATCH] Revamp submission details: more compact general info (#524) --- .../Programming/SubmissionDetails.jsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx index 656cf1161..cbfa2ec11 100644 --- a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx +++ b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx @@ -66,19 +66,20 @@ export function SubmissionDetails({ return (
- {grading && } {separator} {(containerName || problemName) && ( - <> - {' '} - {separator} {containerName && <>{containerName} / } +

+ {containerName && <>{containerName} / } {problemName && !!problemUrl ? ( {constructProblemName(problemName, problemAlias)} ) : ( constructProblemName(problemName, problemAlias) )} - - )}{' '} - {separator} {getGradingLanguageName(gradingLanguage)} {separator} +

+ )} +

+ {grading && } {separator} + {separator} {getGradingLanguageName(gradingLanguage)} {separator} +

); };