mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Layout product grid
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
}
|
||||
|
||||
.relatedProductsGrid {
|
||||
@apply grid grid-cols-2 py-2 gap-2 md:grid-cols-4 md:gap-7;
|
||||
@apply grid grid-cols-2 py-2 gap-2 md:grid-cols-6 md:gap-7;
|
||||
}
|
||||
|
||||
@screen lg {
|
||||
|
@@ -67,18 +67,13 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
||||
{relatedProducts.map((p) => (
|
||||
<div
|
||||
key={p.path}
|
||||
className="animated fadeIn bg-accent-0 border border-accent-2"
|
||||
className="animated fadeIn"
|
||||
>
|
||||
<ProductCard
|
||||
noNameTag
|
||||
product={p}
|
||||
key={p.path}
|
||||
variant="simple"
|
||||
className="animated fadeIn"
|
||||
imgProps={{
|
||||
width: 300,
|
||||
height: 300,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
|
Reference in New Issue
Block a user