fix: download progress indicator

This commit is contained in:
2025-05-12 15:10:25 -05:00
parent eded5a2fc8
commit eed2e70d21
2 changed files with 7 additions and 12 deletions

View File

@@ -20,11 +20,11 @@
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 min-w-[45ch] max-w-[45ch] truncate">
{{ download.title }}
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800 dark:text-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm align-middle text-gray-800 dark:text-gray-50">
{% if download.progress < 100 %}
<span class="p-1.5 bg-purple-600 rounded-full">
<span class="w-4 inline-block text-center text-gray-50">{{ download.progress }}</span>
</span>
<div class="w-[3.25ch] h-[3.25ch] bg-purple-600 rounded-full block text-center table-cell align-middle text-xs text-gray-50">
{{ download.progress }}
</div>
{% else %}
<twig:StatusBadge color="green" status="Completed" />
{% endif %}