From 3d7449d871d1b34fc7d6ff2c100602dcdeae4442 Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 22 Nov 2022 18:05:09 +0900 Subject: [PATCH] Address PR comments --- src/modules/torrents/TorrentsModule.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/torrents/TorrentsModule.tsx b/src/modules/torrents/TorrentsModule.tsx index a12e4b1a2..674979f61 100644 --- a/src/modules/torrents/TorrentsModule.tsx +++ b/src/modules/torrents/TorrentsModule.tsx @@ -23,6 +23,8 @@ import { AddItemShelfButton } from '../../components/AppShelf/AddAppShelfItem'; import { useSetSafeInterval } from '../../tools/hooks/useSetSafeInterval'; import { humanFileSize } from '../../tools/humanFileSize'; +const MIM_WIDTH_MOBILE = 576; + export const TorrentsModule: IModule = { id: 'torrents-status', title: 'Torrent', @@ -112,9 +114,9 @@ export default function TorrentsComponent() { {t('card.table.header.name')} {t('card.table.header.size')} - {width > 576 ? {t('card.table.header.download')} : null} - {width > 576 ? {t('card.table.header.upload')} : null} - {width > 576 ? {t('card.table.header.estimatedTimeOfArrival')} : null} + {width > MIM_WIDTH_MOBILE && {t('card.table.header.download')}} + {width > MIM_WIDTH_MOBILE && {t('card.table.header.upload')}} + {width > MIM_WIDTH_MOBILE && {t('card.table.header.estimatedTimeOfArrival')}} {t('card.table.header.progress')} );