enh: allow file download from collection view

This commit is contained in:
Timothy J. Baek 2024-10-20 01:58:27 -07:00
parent 15cbb66e5e
commit e8591b57b4

View File

@ -713,8 +713,14 @@
</div>
{/if}
<div class=" flex-1 text-2xl font-medium line-clamp-1">
{selectedFile?.meta?.name}
<div class=" flex-1 text-2xl font-medium">
<a
class="hover:text-gray-500 hover:dark:text-gray-100 hover:underline flex-grow line-clamp-1"
href={selectedFile.id ? `/api/v1/files/${selectedFile.id}/content` : '#'}
target="_blank"
>
{selectedFile?.meta?.name}
</a>
</div>
<div>