Skip to content

Commit

Permalink
chore: cap srcset to 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
rylanharper committed Nov 25, 2024
1 parent 92f9d3c commit cdb2ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/common/shopify-image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const props = defineProps<{
// eslint-disable-next-line vue/return-in-computed-property
const srcset = computed(() => {
if (props.image?.url.includes('cdn.shopify.com')) {
const sizes = [400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000, 2200];
const sizes = [400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000];
return sizes
.map((width) => `${formatSizeUrl(props.image?.url, width)} ${width}w`)
Expand Down

0 comments on commit cdb2ec8

Please sign in to comment.