Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix cart on mobile

Krzysztof Białogłowicz808fd5ba5480
diff --git a/saleor/static/scss/storefront/components/_cart.scss b/saleor/static/scss/storefront/components/_cart.scss
index 0f56a1094b..3c3f78e24f 100644
--- a/saleor/static/scss/storefront/components/_cart.scss
+++ b/saleor/static/scss/storefront/components/_cart.scss
@@ -90,6 +90,9 @@
padding: $global-padding 0;
width: 100%;
select {
+ @include media-breakpoint-down(sm) {
+ width: 100%;
+ }
background-color: $white;
height: calc(2.25rem + 2px);
@include media-breakpoint-up(sm) {
diff --git a/templates/cart/index.html b/templates/cart/index.html
index c6ffc5dc9e..121d4f89c9 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -69,11 +69,11 @@
{% endfor %}
<div class="cart__total">
<div class="row">
- <div class="col-9 cart__total__subtotal">
+ <div class="col-8 cart__total__subtotal">
<h3>{% trans "Subtotal" %}</h3>
<p>({% trans "Delivery claculated on checkout" %})</p>
</div>
- <div class="col-3">
+ <div class="col-4">
<p class="cart-total text-right" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>
{% spaceless %}
{% gross cart_total html=True %}