From cfc919c862ca624e466cad78ed61a340a74ab8f8 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Sat, 4 Nov 2023 16:19:21 -0300 Subject: [PATCH] Update gallery and pagination components --- src/components/Gallery/GalleryMainImage.vue | 2 +- .../Gallery/GalleryThumbnailList.vue | 11 ++-- .../ImageViewer/ImageViewer.global.vue | 2 +- .../Pagination/VPagination.global.vue | 54 ++++++++++++++----- 4 files changed, 46 insertions(+), 23 deletions(-) diff --git a/src/components/Gallery/GalleryMainImage.vue b/src/components/Gallery/GalleryMainImage.vue index 385a558..493c36a 100644 --- a/src/components/Gallery/GalleryMainImage.vue +++ b/src/components/Gallery/GalleryMainImage.vue @@ -12,7 +12,7 @@ ref="imageElement" class="max-h-80 h-max w-100 cursor-zoom-in m-auto object-contain" :src="image.original" - :alt="image.depictions.map((d) => d.label).join(';')" + :alt="image.depictions?.map((d) => d.label).join(';')" @click="emit('open:viewer')" /> diff --git a/src/components/Gallery/GalleryThumbnailList.vue b/src/components/Gallery/GalleryThumbnailList.vue index 540ef3b..7545e99 100644 --- a/src/components/Gallery/GalleryThumbnailList.vue +++ b/src/components/Gallery/GalleryThumbnailList.vue @@ -1,16 +1,13 @@