diff --git a/components/shopify/collection-card.tsx b/components/shopify/collection-card.tsx index 4ffa1bf..8c07c65 100644 --- a/components/shopify/collection-card.tsx +++ b/components/shopify/collection-card.tsx @@ -25,7 +25,7 @@ const CollectionCard: React.FC = ({ collection }) => { className="group block h-full" > {/* Collection Image */} -
+
{collection.image ? ( = ({ product }) => { className="group block h-full" > {/* Product Image */} -
+
{firstImage ? ( = ({ key={index} onClick={() => setZoomedIndex(index)} aria-label={`Zoom ${image.altText || 'product image'}`} - className={`relative aspect-square w-full shrink-0 snap-center overflow-hidden bg-white pointer-events-none sm:pointer-events-auto sm:shrink sm:cursor-zoom-in ${ + className={`relative aspect-square w-full shrink-0 snap-center overflow-hidden pointer-events-none sm:pointer-events-auto sm:shrink sm:cursor-zoom-in ${ isSingle ? 'sm:col-span-2' : '' }`} > @@ -177,7 +177,7 @@ const ProductDetailGallery: React.FC = ({ src={zoomedImage.url} alt={zoomedImage.altText || 'Product image'} onClick={(event) => event.stopPropagation()} - className="max-h-full max-w-full object-contain bg-white" + className="max-h-full max-w-full object-contain" />