|
|
|
@ -82,19 +82,21 @@ const attachments: ComputedRef<Attachment[]> = computed(() => {
|
|
|
|
|
:hoverable="false" |
|
|
|
|
> |
|
|
|
|
<div class="flex flex-row items-center justify-start w-full"> |
|
|
|
|
<a-carousel v-if="attachment && attachments && attachments.length" autoplay class="!w-24 !h-24"> |
|
|
|
|
<template #customPaging> </template> |
|
|
|
|
<template v-for="(attachmentObj, index) in attachments"> |
|
|
|
|
<LazyCellAttachmentImage |
|
|
|
|
v-if="isImage(attachmentObj.title, attachmentObj.mimetype ?? attachmentObj.type)" |
|
|
|
|
:key="`carousel-${attachmentObj.title}-${index}`" |
|
|
|
|
class="!h-24 !w-24 object-cover !rounded-l-xl" |
|
|
|
|
:srcs="getPossibleAttachmentSrc(attachmentObj)" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</a-carousel> |
|
|
|
|
<div v-else-if="attachment" class="h-24 w-24 w-full !flex flex-row items-center !rounded-l-xl justify-center"> |
|
|
|
|
<img class="object-contain h-24 w-24" src="~assets/icons/FileIconImageBox.png" /> |
|
|
|
|
<div class="flex h-24 w-24 min-w-24 max-w-24"> |
|
|
|
|
<a-carousel v-if="attachment && attachments && attachments.length" autoplay class="!w-24 !h-24 !min-w-24 !max-w-24"> |
|
|
|
|
<template #customPaging> </template> |
|
|
|
|
<template v-for="(attachmentObj, index) in attachments"> |
|
|
|
|
<LazyCellAttachmentImage |
|
|
|
|
v-if="isImage(attachmentObj.title, attachmentObj.mimetype ?? attachmentObj.type)" |
|
|
|
|
:key="`carousel-${attachmentObj.title}-${index}`" |
|
|
|
|
class="!h-24 !w-24 object-cover !rounded-l-xl" |
|
|
|
|
:srcs="getPossibleAttachmentSrc(attachmentObj)" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</a-carousel> |
|
|
|
|
<div v-else-if="attachment" class="h-24 w-24 w-full !flex flex-row items-center !rounded-l-xl justify-center"> |
|
|
|
|
<img class="object-contain h-24 w-24 min-w-24 max-w-24" src="~assets/icons/FileIconImageBox.png" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex flex-col m-[.75rem] gap-1 flex-grow justify-center overflow-hidden"> |
|
|
|
|
<div class="flex justify-between xs:gap-x-2"> |
|
|
|
|