Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix address list styles
Krzysztof Białogłowicz1a45296db151
diff --git a/saleor/static/scss/storefront/components/_userprofile.scss b/saleor/static/scss/storefront/components/_userprofile.scssindex 22ac436593..3a5ff049a3 100644--- a/saleor/static/scss/storefront/components/_userprofile.scss+++ b/saleor/static/scss/storefront/components/_userprofile.scss@@ -106,10 +106,10 @@border-spacing: $global-margin;margin: 0;.card-deck {- display: table-row;.card {- width: 50%;+ width: 100%;border-radius: 3px;+ margin: $global-margin 0;@include transition(background, 0.3s)&:hover {background: $light-gray;diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex 5e0f783c77..41247f915a 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -84,25 +84,24 @@</div><div class="tab-pane" id="addresses" role="tabpanel"><div class="card-deck-wrapper userprofile__addresses">- <div class="card-deck">- {% for address in addresses %}- <div class="card card-block">- {% include "userprofile/snippets/address-short.html" %}- <ul class="icons">- <li><a href="{% url "profile:address-edit" pk=address.pk %}">{% trans "Edit" %}</a></li>- <li><a class="delete-icon"><img class="float-right" src="{% static 'images/icon_delete.svg' %}"></a></li>- </ul>- {% include "userprofile/address-delete.html" with pk=address.pk %}- </div>- {% if forloop.counter|divisibleby:2 %}+ <div class="row card-deck">+ {% for address in addresses %}+ <div class="col-md-6">+ <div class="card card-block">+ {% include "userprofile/snippets/address-short.html" %}+ <ul class="icons">+ <li><a href="{% url "profile:address-edit" pk=address.pk %}">{% trans "Edit" %}</a></li>+ <li><a class="delete-icon"><img class="float-right" src="{% static 'images/icon_delete.svg' %}"></a></li>+ </ul>+ {% include "userprofile/address-delete.html" with pk=address.pk %}+ </div></div>- <div class="card-deck">- {% endif %}- {% endfor %}+ {% endfor %}+ </div>{% if addresses|length == 0 %}<h3 class="text-sm-center">{% trans "You will see new addresses here after first successful checkout." %}</h3>{% endif %}- </div>+</div></div></div>