This commit is contained in:
Timothy J. Baek
2024-09-29 18:55:26 +02:00
parent f2ec020b64
commit 92dd173b27
4 changed files with 98 additions and 74 deletions

View File

@@ -20,8 +20,14 @@
<div class="font-primary px-6 py-5 w-full flex flex-col justify-center dark:text-gray-400">
<div class="flex items-start justify-between pb-2">
<div>
<div class=" font-medium text-lg line-clamp-1 dark:text-gray-100">
{file?.name ?? 'File'}
<div class=" font-medium text-lg dark:text-gray-100">
<a
href={file.url ? (file.type === 'file' ? `${file.url}/content` : `${file.url}`) : '#'}
target="_blank"
class="hover:underline line-clamp-1"
>
{file?.name ?? 'File'}
</a>
</div>
<div>