From be65e2d4e233882ed68203255012a1bd17592e71 Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Mon, 30 Jun 2025 09:13:49 -0500 Subject: [PATCH] fix: makes download list & monitor list responsive --- templates/components/DownloadList.html.twig | 26 ++++++++----------- .../components/DownloadListRow.html.twig | 17 ++++++------ templates/components/MonitorList.html.twig | 10 +++---- templates/components/MonitorListRow.html.twig | 10 +++---- templates/components/SearchResult.html.twig | 2 +- 5 files changed, 30 insertions(+), 35 deletions(-) diff --git a/templates/components/DownloadList.html.twig b/templates/components/DownloadList.html.twig index 77b68b7..617b327 100644 --- a/templates/components/DownloadList.html.twig +++ b/templates/components/DownloadList.html.twig @@ -11,34 +11,30 @@ + class="px-6 py-3 text-start text-xs font-medium text-stone-500 uppercase dark:text-stone-800 truncate"> Title - - {% if this.isWidget == false %} - - Filename - - - Media type - - {% endif %} - + + Filename + + + Media type + Progress + class="hidden md:table-cell px-6 py-3 text-start text-xs font-medium text-gray-500 uppercase dark:text-stone-800"> {% if this.downloads.items|length > 0 %} {% for download in this.downloads.items %} - + {% endfor %} {% if this.isWidget == true and this.downloads.items|length > this.perPage %} diff --git a/templates/components/DownloadListRow.html.twig b/templates/components/DownloadListRow.html.twig index 2f21e1b..ab31221 100644 --- a/templates/components/DownloadListRow.html.twig +++ b/templates/components/DownloadListRow.html.twig @@ -11,14 +11,13 @@ {% endif %} - {% if isWidget == false %} - - {{ download.filename }} - - - {{ download.mediaType }} - - {% endif %} + + {{ download.filename }} + + + + {{ download.mediaType }} + {% if download.progress < 100 %} @@ -32,7 +31,7 @@ {% endif %} - + {% if download.status == 'In Progress' and download.progress < 100 %}