Skip to content

Commit 2590b69

Browse files
committed
Fix bug of displaying image on product view page
1 parent 1d0f181 commit 2590b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/product/view.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
<template x-for="image in images">
3737
<div
3838
x-show="activeImage === image"
39-
class="aspect-w-3 aspect-h-2"
39+
class="w-full h-[240px] sm:h-[400px] flex items-center justify-center"
4040
>
41-
<img :src="image" alt="" class="w-auto mx-auto"/>
41+
<img :src="image" alt="" class="w-auto h-auto max-h-full mx-auto"/>
4242
</div>
4343
</template>
4444
<a

0 commit comments

Comments
 (0)