From 6b17a61d557dd199d1b706ef2ee843a35381c9a1 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 6 Jul 2026 10:01:34 +0100 Subject: [PATCH] Add thumbail only option to gallery card --- .../galleryComponents/galleryCard.vue | 142 +++++++++++------- 1 file changed, 84 insertions(+), 58 deletions(-) diff --git a/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue b/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue index f53e93be..0e010254 100644 --- a/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue +++ b/webapp/src/components/tabContentComponents/galleryComponents/galleryCard.vue @@ -1,11 +1,14 @@ @@ -97,6 +104,11 @@ export default { type: Object, required: true, }, + thumbnailOnly: { + type: Boolean, + default: false, + required: false, + }, }, emits: ["viewer-requested", "update-requested"], @@ -210,6 +222,15 @@ ul { text-align: center; } +.thumbnail-only-card { + width: auto; +} + +.thumbnail-only-container { + height: 150px; + width: 150px; +} + .thumbnail-fit { max-height: 120px; max-width: 240px; @@ -217,6 +238,11 @@ ul { overflow-y: hidden; } +.thumbnail-fit.thumbnail-only { + max-height: 150px; + max-width: 150px; +} + .clickable { cursor: pointer; }