feat: image previews (#104)

Co-authored-by: lihbr <lihbr@users.noreply.github.com>
This commit is contained in:
Lucie 2022-11-25 13:13:44 -05:00 committed by GitHub
parent a812ea098f
commit 9df9c06f64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 13 deletions

View file

@ -64,7 +64,12 @@ const aspectRatio = computed(() => {
aspectRatio,
}"
border="~ base"
object-cover rounded-lg
object-cover
rounded-lg
@click="openImagePreviewDialog({
src: attachment.url || attachment.previewUrl!,
alt: attachment.description!,
})"
/>
</template>
</template>