Commit 949b0136 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

change display product

parent 29e48e51
...@@ -44,7 +44,7 @@ export default function ProductCard({ ...@@ -44,7 +44,7 @@ export default function ProductCard({
> >
<CardMedia <CardMedia
sx={{ pt: 1 }} sx={{ pt: 1 }}
className="rounded" className="rounded object-contain"
component={"img"} component={"img"}
height={150} height={150}
image={product.image.length ? product.image : "/empty.jpg"} image={product.image.length ? product.image : "/empty.jpg"}
......
...@@ -74,7 +74,7 @@ export default function Stock() { ...@@ -74,7 +74,7 @@ export default function Stock() {
<h5 className="h-[40px] overflow-y-hidden">{product.name}</h5> <h5 className="h-[40px] overflow-y-hidden">{product.name}</h5>
</Box> </Box>
<CardMedia <CardMedia
className="rounded" className="rounded object-contain"
component={"img"} component={"img"}
height={150} height={150}
image={product.image.length ? product.image : "/empty.jpg"} image={product.image.length ? product.image : "/empty.jpg"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment