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

@@ -15,9 +15,7 @@
<span class="w-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
</span>
{% else %}
<span class="p-1.5 bg-green-600 rounded-full">
<span class="inline-block text-center text-gray-50">Complete</span>
</span>
<twig:StatusBadge color="green" status="Complete" />
{% endif %}
</td>
</tr>
@@ -34,7 +32,7 @@
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-end text-gray-800 dark:text-gray-50">
<span class="p-1.5 bg-purple-600 rounded-full">
<span class="w-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
<span class="mw-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
</span>
</td>
</template>
@@ -59,9 +57,7 @@
{{ entity.title }}
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800 dark:text-gray-50">
<span class="p-1.5 bg-green-600 rounded-full">
<span class="inline-block text-center text-gray-50">Complete</span>
</span>
<twig:StatusBadge color="green" status="Complete" />
</td>
</tr>
</template>
@@ -71,5 +67,4 @@
{% block remove %}
<turbo-stream action="remove" target="ad_download_{{ id }}"></turbo-stream>
{# <turbo-stream action="remove" target="cd_download_{{ id }}"></turbo-stream>#}
{% endblock %}