diff --git a/src/components/modules/downloads/DownloadsModule.tsx b/src/components/modules/downloads/DownloadsModule.tsx index bd2a1664b..5bc19d27a 100644 --- a/src/components/modules/downloads/DownloadsModule.tsx +++ b/src/components/modules/downloads/DownloadsModule.tsx @@ -18,6 +18,7 @@ import { IModule } from '../modules'; import { useConfig } from '../../../tools/state'; import { AddItemShelfButton } from '../../AppShelf/AddAppShelfItem'; import { useSetSafeInterval } from '../../../tools/hooks/useSetSafeInterval'; +import { useViewportSize } from '@mantine/hooks'; export const DownloadsModule: IModule = { title: 'Torrent', @@ -34,6 +35,7 @@ export const DownloadsModule: IModule = { export default function DownloadComponent() { const { config } = useConfig(); + const { height, width } = useViewportSize(); const downloadServices = config.services.filter( (service) => @@ -85,10 +87,10 @@ export default function DownloadComponent() { const ths = (