Skip to content

Commit

Permalink
[Fix/UI] Fix status after aborting wine installation. Make width of p…
Browse files Browse the repository at this point in the history
…rogress more stable (#3374)

Fix status after abort. Make width more stable
  • Loading branch information
arielj authored Jan 2, 2024
1 parent a03b38b commit 76c6bca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/frontend/screens/WineManager/components/WineItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ const WineItem = ({
default:
break
}

setProgress({
state: 'idle',
progress: { percentage: 0, avgSpeed: 0, eta: '00:00:00' }
})
})
}

Expand Down Expand Up @@ -211,15 +216,10 @@ function getProgressElement(progress: ProgressInfo) {

const percentageAsString = `${percentage.toFixed(2)}%`
const etaAsString = `${eta}`

return (
<p
style={{
color: '#0BD58C',
fontStyle: 'italic'
}}
>
{percentageAsString} ({etaAsString})
<p className="progress">
{percentageAsString}
<br />({etaAsString})
</p>
)
}
Expand Down

0 comments on commit 76c6bca

Please sign in to comment.