nice looking progress percentage

This commit is contained in:
Aria Moradi
2021-09-17 00:54:46 +04:30
parent 3d3c2a29ca
commit f6fccbe348
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ export default function DownloadQueue() {
<ListItemText
primary={
`${item.chapter.name} | `
+ ` (${item.progress * 100}%)`
+ ` (${(item.progress * 100).toFixed(2)}%)`
+ ` => state: ${item.state}`
}
/>

View File

@@ -98,7 +98,7 @@ export default function Manga() {
}
queue.forEach((q) => {
if (chapter.index === q.chapterIndex && chapter.mangaId === q.mangaId) {
rtn = ` • Downloading (${q.progress * 100}%)`;
rtn = ` • Downloading (${(q.progress * 100).toFixed(2)}%)`;
}
});
return rtn;