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')} );