Skip to content

Commit

Permalink
feat: Add sizes to CategorCard image
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Jul 13, 2024
1 parent 18b1439 commit 5e97f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions woonuxt_base/app/components/CategoryCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
<div class="absolute inset-x-0 bottom-0 opacity-50 bg-gradient-to-t from-black to-transparent h-1/2" />
Expand Down

0 comments on commit 5e97f95

Please sign in to comment.