Skip to content

Commit

Permalink
Beautify submission details content card border in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jun 23, 2024
1 parent ad977bc commit 061cd58
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function SubmissionDetails({
return (
<>
<h4>Grading Error</h4>
<ContentCard>
<ContentCard secondary>
<h5>Message</h5>
<pre>{grading.details.errorMessage}</pre>
</ContentCard>
Expand Down Expand Up @@ -96,7 +96,7 @@ export function SubmissionDetails({
}

return latestGrading.details.subtaskResults.map(subtaskResult => (
<ContentCard className="details-card">
<ContentCard secondary className="details-card">
<details>
<summary>
<h5>
Expand Down Expand Up @@ -166,7 +166,7 @@ export function SubmissionDetails({
}

return (
<ContentCard className="details-card">
<ContentCard secondary className="details-card">
<details>
<summary>
<h5>
Expand Down Expand Up @@ -221,7 +221,7 @@ export function SubmissionDetails({
}

return (
<ContentCard className="details-card">
<ContentCard secondary className="details-card">
<details>
<summary>
<h5>
Expand Down Expand Up @@ -304,7 +304,7 @@ export function SubmissionDetails({
return (
<>
{renderSourceFilesHeading()}
<ContentCard>
<ContentCard secondary>
<img src={sourceImageUrl} className="submission-details-image" alt="submission" />
</ContentCard>
</>
Expand All @@ -315,7 +315,7 @@ export function SubmissionDetails({
const { submissionFiles } = source;

const sourceFiles = Object.keys(submissionFiles).map(key => (
<ContentCard key={key}>
<ContentCard key={key} secondary>
{!hideSourceFilename && (
<h5>
{key === DEFAULT_SOURCE_KEY ? '' : key + ': '} {submissionFiles[key].name}
Expand All @@ -342,7 +342,7 @@ export function SubmissionDetails({
Object.keys(details.compilationOutputs)
.filter(key => submissionFiles[key] === undefined)
.map(key => (
<ContentCard>
<ContentCard secondary>
<h5>Compilation Output</h5>
<pre>{details.compilationOutputs[key]}</pre>
</ContentCard>
Expand Down

0 comments on commit 061cd58

Please sign in to comment.