diff --git a/src/widgets/torrent/TorrentQueueItem.tsx b/src/widgets/torrent/TorrentQueueItem.tsx
index a29862bfb..17cc61c03 100644
--- a/src/widgets/torrent/TorrentQueueItem.tsx
+++ b/src/widgets/torrent/TorrentQueueItem.tsx
@@ -13,7 +13,6 @@ import {
createStyles,
useMantineTheme,
} from '@mantine/core';
-import { useDisclosure } from '@mantine/hooks';
import {
IconAffiliate,
IconDatabase,
@@ -26,7 +25,6 @@ import {
} from '@tabler/icons-react';
import { useTranslation } from 'next-i18next';
import { MIN_WIDTH_MOBILE } from '~/constants/constants';
-
import { calculateETA } from '~/tools/client/calculateEta';
import { humanFileSize } from '~/tools/humanFileSize';
import { AppType } from '~/types/app';
@@ -38,7 +36,6 @@ interface TorrentQueueItemProps {
}
export const BitTorrentQueueItem = ({ torrent, width, app }: TorrentQueueItemProps) => {
- const [popoverOpened, { open: openPopover, close: closePopover }] = useDisclosure(false);
const { classes } = useStyles();
const { t } = useTranslation('modules/torrents-status');
@@ -46,71 +43,79 @@ export const BitTorrentQueueItem = ({ torrent, width, app }: TorrentQueueItemPro
const uploadSpeed = torrent.uploadSpeed / 1024 / 1024;
const size = torrent.totalSelected;
return (
-
-
-
-
-
-
-
-
-
- {torrent.name}
+
+
+
+ |
+
+ {torrent.name}
+
+ {app && (
+
+ {t('card.table.item.text', {
+ appName: app.name,
+ ratio: torrent.ratio.toFixed(2),
+ })}
- {app && (
-
- {t('card.table.item.text', {
- appName: app.name,
- ratio: torrent.ratio.toFixed(2),
- })}
-
- )}
-
-
-
- |
-
-
- {humanFileSize(size, false)}
-
- |
- {width > MIN_WIDTH_MOBILE && (
-
-
- {downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}
-
- |
- )}
- {width > MIN_WIDTH_MOBILE && (
-
-
- {uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}
-
- |
- )}
- {width > MIN_WIDTH_MOBILE && (
-
-
- {torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)}
-
- |
- )}
-
- {(torrent.progress * 100).toFixed(1)}%
-
- |
-
+ )}
+ |
+
+
+ {humanFileSize(size, false)}
+
+ |
+ {width > MIN_WIDTH_MOBILE && (
+
+
+ {downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}
+
+ |
+ )}
+ {width > MIN_WIDTH_MOBILE && (
+
+
+ {uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}
+
+ |
+ )}
+ {width > MIN_WIDTH_MOBILE && (
+
+
+ {torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)}
+
+ |
+ )}
+
+ {(torrent.progress * 100).toFixed(1)}%
+
+ |
+
+
+
+
+
+
);
};
@@ -234,7 +239,4 @@ const useStyles = createStyles(() => ({
noTextBreak: {
whiteSpace: 'nowrap',
},
- transparentBackground: {
- backgroundColor: 'transparent !important',
- },
}));