From 21c08cbe63829ef93571349247409a6cfa5255a0 Mon Sep 17 00:00:00 2001 From: Larvey <39219859+LarveyOfficial@users.noreply.github.com> Date: Sun, 12 Jun 2022 00:59:12 -0400 Subject: [PATCH] Change Elements hidden on Mobile --- .../modules/downloads/DownloadsModule.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) 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)}%