From 5e97f9532d0bd108b06f229773ddd7073120c54e Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Sat, 13 Jul 2024 20:12:25 +0100 Subject: [PATCH] feat: Add sizes to CategorCard image --- woonuxt_base/app/components/CategoryCard.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/woonuxt_base/app/components/CategoryCard.vue b/woonuxt_base/app/components/CategoryCard.vue index aebaf0b3..eb870b2b 100644 --- a/woonuxt_base/app/components/CategoryCard.vue +++ b/woonuxt_base/app/components/CategoryCard.vue @@ -22,6 +22,7 @@ const ImageHeight = Math.round(imageWidth * 1.25); :alt="node.image?.altText || node.name" :title="node.image?.title || node.name" :loading="imageLoading" + :sizes="`50vw md:${imageWidth}px`" placeholder placeholder-class="blur-xl" />