Skip to content

Commit

Permalink
Wrap text to typography (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl authored Dec 15, 2024
1 parent 3953f06 commit a3519b4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/SemesterAdministration/SemesterAdministration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,11 @@ export const SemesterAdministration: FC = () => {
</Link>
</Grid>
<Grid xs={4} textAlign="center">
{problem.num_corrected_solutions === problem.num_solutions ? (
<>{`Opravené (${problem.num_solutions})`}</>
) : (
<>
{problem.num_corrected_solutions}/{problem.num_solutions}
</>
)}
<Typography variant="body1" component="div">
{problem.num_corrected_solutions === problem.num_solutions
? `Opravené (${problem.num_solutions})`
: `${problem.num_corrected_solutions}/${problem.num_solutions}`}
</Typography>
</Grid>
<Grid xs={4} textAlign="center">
{problem.solution_pdf ? (
Expand Down

0 comments on commit a3519b4

Please sign in to comment.