Bugfix changed image scaling

This commit is contained in:
Xinrui Chen 2022-07-17 20:13:31 -07:00
parent c4b0608c4e
commit 9a4fbfe0e0
1 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import Rating from './Rating/Rating.svelte';
description: '',
date: 'text-xs w-2/3 mt-auto mb-4',
tags: 'flex gap-1',
img: 'p-8 border border-black border-2 p-3',
img: 'p-8 border flex-shrink-0 w-72 h-72 border-black border-2 p-3',
ratings: ''
}
</script>
@ -24,7 +24,6 @@ import Rating from './Rating/Rating.svelte';
<img
src={urlFor($currentProduct.image).url()}
class={img}
width={300}
alt={$currentProduct.name}
/>
{/if}