diff --git a/src/components/modules/downloads/DownloadsModule.tsx b/src/components/modules/downloads/DownloadsModule.tsx index 5bc19d27a..accbf4033 100644 --- a/src/components/modules/downloads/DownloadsModule.tsx +++ b/src/components/modules/downloads/DownloadsModule.tsx @@ -87,10 +87,10 @@ export default function DownloadComponent() { const ths = ( Name - {width > 576 ? Size : ``} - Down - Up - {width > 576 ? ETA : ``} + Size + {width > 576 ? Down : ``} + {width > 576 ? Up : ``} + ETA Progress ); @@ -139,22 +139,23 @@ export default function DownloadComponent() { - {width > 576 ? {size > 0 ? (size > 999 ? `${(size / 1024).toFixed(1)} GB` : `${size.toFixed(1)} MB`) : '-' } - : - ``} + + {width > 576 ? {downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'} - - {uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'} - + : + ``} {width > 576 ? - {torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)} + {uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'} : ``} + + {torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)} + {(torrent.progress * 100).toFixed(1)}%