Bugfix Image scaling

This commit is contained in:
Xinrui Chen 2022-07-17 20:15:27 -07:00
parent f981ee3867
commit 1ec7949382
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 w-72 h-72 min-w-36 min-h-36 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}