Commit 9772c911 authored by Shaphen's avatar Shaphen

[AFP-47 Shaphen Pangburn]: Adjust formatting to look more even with flexbox

parent d83ca88e
......@@ -35,9 +35,9 @@ export default class ProductMarket extends Component {
<div className="products-container">
{this.props.products.map(prod => {
return (
<div className="product-item">
<div className="product-item" key={ prod.sku }>
{prod.productName ?
<div key={ prod.sku }>
<div>
<img id="prod-img" src={ prod.productImageUrl ? prod.productImageUrl : "-no photo-" } />
<p id="prod-name">{ prod.productName }</p>
<p id="prod-description">{ prod.productDescription }</p>
......
......@@ -11,11 +11,12 @@
}
.products-container {
width: 100%;
width: 80%;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#prod-img {
width: 250px;
height: 200px;
}
\ No newline at end of file
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