Skip to content

Commit

Permalink
Fixed grades not visible on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
grumd committed Feb 26, 2024
1 parent affb069 commit 56e161d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,15 @@ const Result = ({ result, chart }: { result: ResultExtended; chart: ChartApiOutp
<td className={classNames('grade')}>
<div className="img-holder">
{!filter.scoring || filter.scoring === 'phoenix' ? (
<Grade score={result.score} isPass={result.passed ?? false} scoring="phoenix" />
<Grade
w="auto"
h="1rem"
score={result.score}
isPass={result.passed ?? false}
scoring="phoenix"
/>
) : (
<Grade grade={result.grade} scoring="xx" />
<Grade w="auto" h="1rem" grade={result.grade} scoring="xx" />
)}
</div>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,6 @@
display: flex;
align-items: center;
justify-content: center;
img {
height: 1rem;
}
}
}
&.date {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const HighestPpCharts = (): JSX.Element => {
<Grade
pl="0.5em"
h="1em"
w="100%"
score={item.score ?? 0}
isPass={item.is_pass ?? false}
scoring="phoenix"
Expand Down

0 comments on commit 56e161d

Please sign in to comment.