Enhancement: Add size of torrent(s) in leechProgress list to qbittorrent widget (#5803)
Some checks failed
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled

This commit is contained in:
AdamWHY2K
2025-09-27 07:28:15 +01:00
committed by GitHub
parent 02089a35ee
commit 8f756d4084
4 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
export default function QueueEntry({ title, activity, timeLeft, progress }) {
export default function QueueEntry({ title, activity, timeLeft, progress, size }) {
return (
<div className="text-theme-700 dark:text-theme-200 relative h-5 rounded-md bg-theme-200/50 dark:bg-theme-900/20 m-1 px-1 flex">
<div
@@ -11,6 +11,7 @@ export default function QueueEntry({ title, activity, timeLeft, progress }) {
<div className="absolute w-full whitespace-nowrap text-ellipsis overflow-hidden text-left">{title}</div>
</div>
<div className="self-center text-xs flex justify-end mr-1.5 pl-1 z-10 text-ellipsis overflow-hidden whitespace-nowrap">
{size && `${size} - `}
{timeLeft ? `${activity} - ${timeLeft}` : activity}
</div>
</div>