Center Similar Products grid on product pages
This commit is contained in:
@@ -414,7 +414,8 @@ export default function ProductDetail({ product, relatedProducts, locale = "SR"
|
|||||||
{locale === "EN" ? "Similar Products" : "Slični proizvodi"}
|
{locale === "EN" ? "Similar Products" : "Slični proizvodi"}
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8 justify-center">
|
<div className="flex justify-center">
|
||||||
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8">
|
||||||
{relatedProducts.filter(p => p && p.id).slice(0, 4).map((relatedProduct, index) => (
|
{relatedProducts.filter(p => p && p.id).slice(0, 4).map((relatedProduct, index) => (
|
||||||
<ProductCard
|
<ProductCard
|
||||||
key={relatedProduct.id}
|
key={relatedProduct.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user