From 0ad4392184f269121100d9f1f5515ea23df5f0d0 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sun, 26 Oct 2025 01:16:35 +0700 Subject: fix image prod detail --- src-migrate/modules/product-detail/styles/image.module.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src-migrate/modules/product-detail/styles/image.module.css b/src-migrate/modules/product-detail/styles/image.module.css index e472fe8d..f33a659b 100644 --- a/src-migrate/modules/product-detail/styles/image.module.css +++ b/src-migrate/modules/product-detail/styles/image.module.css @@ -1,9 +1,21 @@ -.wrapper { +/* .wrapper { @apply h-[250px] md:h-[340px] flex items-center justify-center border border-gray-200 rounded-lg p-4 relative; } .image { @apply object-contain object-center h-full w-full; +} */ + +.wrapper { + @apply relative border border-gray-200 rounded-lg overflow-hidden; + + @apply w-full aspect-[1/1]; + + @apply mx-auto; +} + +.image { + @apply w-full h-full object-cover object-center block; } .absolute-info { -- cgit v1.2.3