diff --git a/packages/widgets/src/downloads/component.tsx b/packages/widgets/src/downloads/component.tsx index a23e3b158..a0d6f829a 100644 --- a/packages/widgets/src/downloads/component.tsx +++ b/packages/widgets/src/downloads/component.tsx @@ -477,7 +477,7 @@ export default function DownloadClientsWidget({ render: (record) => { const pct = Math.floor(record.progress * 100); return ( - + {`${pct}%`} @@ -860,7 +860,7 @@ function ExpandedRow({ item, collapse }: { item: ExtendedDownloadClientItem; col thickness={5} roundCaps sections={[{ value: progressPercent, color: progressColor(item.state, item.progress) }]} - label={{`${progressPercent}%`}} + label={{`${progressPercent}%`}} /> @@ -1176,8 +1176,8 @@ function WidgetFooter({ {clients.length > 1 && ( - {t("items.integration.columnTitle")}: - + {t("items.integration.columnTitle")}: + {clients.map(({ integration }) => { const active = clientFilter.includes(integration.id); let variant: "filled" | "light" = "light"; @@ -1202,8 +1202,8 @@ function WidgetFooter({ )} {availableStatuses.length > 1 && ( - {t("items.state.columnTitle")}: - + {t("items.state.columnTitle")}: + {availableStatuses.map((status) => { const active = statusFilter.includes(status); let variant: "filled" | "light" = "light"; @@ -1259,7 +1259,7 @@ function WidgetFooter({ - {hasTorrents && globalRatio > 0 && ( + {!showStats && hasTorrents && globalRatio > 0 && ( {`${t("globalRatio")}: ${globalRatio.toFixed(2)}`} )} @@ -1278,18 +1278,20 @@ function WidgetFooter({ )} - - - - {formatByteRate(totalSpeed)} - - {totalUpSpeed > 0 && ( - - - {formatByteRate(totalUpSpeed)} + {!showStats && ( + + + + {formatByteRate(totalSpeed)} - )} - + {totalUpSpeed > 0 && ( + + + {formatByteRate(totalUpSpeed)} + + )} + + )} {someInteract && (