Skip to content

Commit

Permalink
Set minimum threshold width of progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
VinayakRugvedi authored and bshankar committed Aug 27, 2024
1 parent 4af9572 commit b22046e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/src/components/projects/exploreProjectsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,16 @@ const COLUMNS = [
<div>
<div data-tooltip-id={`project-${row.original.projectId}-progress`}>
<ProgressBar
firstBarValue={row.original.percentMapped}
secondBarValue={row.original.percentValidated}
firstBarValue={
row.original.percentMapped > 0
? Math.max(8, row.original.percentMapped)
: row.original.percentMapped
}
secondBarValue={
row.original.percentValidated > 0
? Math.max(8, row.original.percentValidated)
: row.original.percentValidated
}
height="half"
small={false}
/>
Expand Down

0 comments on commit b22046e

Please sign in to comment.