Skip to content

Commit

Permalink
increase threshold to show percentage in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Dec 10, 2023
1 parent 26feaaf commit e9804b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/panels/database/OpeningsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ function OpeningsTable({
<Progress.Root size="xl">
<Progress.Section value={whitePercent} color="white">
<Progress.Label c="black">
{whitePercent > 5 ? `${whitePercent.toFixed(1)}%` : ""}
{whitePercent > 10 ? `${whitePercent.toFixed(1)}%` : ""}
</Progress.Label>
</Progress.Section>
<Progress.Section value={drawPercent} color="gray">
<Progress.Label>
{drawPercent > 5 ? `${drawPercent.toFixed(1)}%` : ""}
{drawPercent > 10 ? `${drawPercent.toFixed(1)}%` : ""}
</Progress.Label>
</Progress.Section>
<Progress.Section value={blackPercent} color="black">
<Progress.Label>
{blackPercent > 5 ? `${blackPercent.toFixed(1)}%` : ""}
{blackPercent > 10 ? `${blackPercent.toFixed(1)}%` : ""}
</Progress.Label>
</Progress.Section>
</Progress.Root>
Expand Down

0 comments on commit e9804b1

Please sign in to comment.