Round width of change progress bar to 2 decimals
It is possible for a gap in the progress bar to remain empty due to how we round the width to no decimals. This should allow us to properly fill the progress bar closer to 100%. Change-Id: I2fb11660b00abb741dc6b973e449efe05cb5bc9f Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
bd09bc6cae
commit
7015626e8a
|
@ -120,7 +120,7 @@ class ChangePanel extends React.Component {
|
|||
}
|
||||
|
||||
renderProgressBar (change) {
|
||||
let jobPercent = Math.floor(100 / change.jobs.length)
|
||||
let jobPercent = (100 / change.jobs.length).toFixed(2)
|
||||
return (
|
||||
<div className='progress zuul-change-total-result'>
|
||||
{change.jobs.map((job, idx) => {
|
||||
|
|
Loading…
Reference in New Issue