Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix product list and price range styles
Krzysztof Białogłowiczbf7ba3b3c661
diff --git a/saleor/static/js/components/categoryPage/CategoryPage.js b/saleor/static/js/components/categoryPage/CategoryPage.jsindex f4aeea0ea0..6352c81de0 100644--- a/saleor/static/js/components/categoryPage/CategoryPage.js+++ b/saleor/static/js/components/categoryPage/CategoryPage.js@@ -168,7 +168,7 @@ class CategoryPage extends Component {</div></div><div className="col-md-9">- <div className="row">+ <div><ProductListonLoadMore={this.incrementProductsCount}products={category.products}diff --git a/saleor/static/js/components/categoryPage/ProductItem.js b/saleor/static/js/components/categoryPage/ProductItem.jsindex 0ce79af4ad..b507b60d98 100644--- a/saleor/static/js/components/categoryPage/ProductItem.js+++ b/saleor/static/js/components/categoryPage/ProductItem.js@@ -13,7 +13,7 @@ class ProductItem extends Component {render() {const { product } = this.props;return (- <div className="col-xs-6 col-md-4 product-list" itemScope itemType="https://schema.org/Product">+ <div className="col-6 col-md-4 product-list" itemScope itemType="https://schema.org/Product"><div className="text-center"><div><a itemProp="url" href={product.url}>diff --git a/saleor/static/js/components/categoryPage/ProductList.js b/saleor/static/js/components/categoryPage/ProductList.jsindex c95b0d5a86..6605b1449f 100644--- a/saleor/static/js/components/categoryPage/ProductList.js+++ b/saleor/static/js/components/categoryPage/ProductList.js@@ -17,7 +17,7 @@ class ProductList extends Component {const { edges, pageInfo: { hasNextPage } } = this.props.products;return (<div>- <div>+ <div className="row">{edges && (edges.map((edge, i) => (<ProductItem key={i} product={edge.node} />)))}diff --git a/saleor/static/scss/storefront/components/_category-page.scss b/saleor/static/scss/storefront/components/_category-page.scssindex f74a06bd05..4301297d39 100644--- a/saleor/static/scss/storefront/components/_category-page.scss+++ b/saleor/static/scss/storefront/components/_category-page.scss@@ -135,18 +135,22 @@h3 {margin-bottom: $global-margin;span {+ width: 100%;margin: 0;+ display: inline;}}input {- width: 7.6rem;+ width: 40%;display: inline-block;}span {- margin: 0 $global-margin;+ width: 20%;+ text-align: center;+ display: inline-block;}button {- width: 18rem;+ width: 100%;margin-top: $global-margin;}}