Address PR comments

This commit is contained in:
ajnart
2022-11-22 18:05:09 +09:00
parent 525dc5748f
commit 3d7449d871

View File

@@ -23,6 +23,8 @@ import { AddItemShelfButton } from '../../components/AppShelf/AddAppShelfItem';
import { useSetSafeInterval } from '../../tools/hooks/useSetSafeInterval'; import { useSetSafeInterval } from '../../tools/hooks/useSetSafeInterval';
import { humanFileSize } from '../../tools/humanFileSize'; import { humanFileSize } from '../../tools/humanFileSize';
const MIM_WIDTH_MOBILE = 576;
export const TorrentsModule: IModule = { export const TorrentsModule: IModule = {
id: 'torrents-status', id: 'torrents-status',
title: 'Torrent', title: 'Torrent',
@@ -112,9 +114,9 @@ export default function TorrentsComponent() {
<tr ref={ref}> <tr ref={ref}>
<th>{t('card.table.header.name')}</th> <th>{t('card.table.header.name')}</th>
<th>{t('card.table.header.size')}</th> <th>{t('card.table.header.size')}</th>
{width > 576 ? <th>{t('card.table.header.download')}</th> : null} {width > MIM_WIDTH_MOBILE && <th>{t('card.table.header.download')}</th>}
{width > 576 ? <th>{t('card.table.header.upload')}</th> : null} {width > MIM_WIDTH_MOBILE && <th>{t('card.table.header.upload')}</th>}
{width > 576 ? <th>{t('card.table.header.estimatedTimeOfArrival')}</th> : null} {width > MIM_WIDTH_MOBILE && <th>{t('card.table.header.estimatedTimeOfArrival')}</th>}
<th>{t('card.table.header.progress')}</th> <th>{t('card.table.header.progress')}</th>
</tr> </tr>
); );