Skip to content

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

Fix mobile animation search

Krzysztof Białogłowicz4b90ecafdaa2
diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.js
index c1aa835134..7d239f22a2 100644
--- a/saleor/static/js/storefront.js
+++ b/saleor/static/js/storefront.js
@@ -67,11 +67,9 @@ let $closeSearchIcon = $('.mobile-close-search');
let $searchForm = $('.navbar__brand__search');
$searchIcon.click((e) => {
$searchForm.animate({left: 0}, {duration: 500})
- $searchForm.parent().addClass('static');
})
$closeSearchIcon.click((e) => {
$searchForm.animate({left: '-100vw'}, {duration: 500})
- $searchForm.parent().removeClass('static');
})
// Sticky footer
diff --git a/templates/base.html b/templates/base.html
index 66ba617cf5..80c04783d1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -69,7 +69,7 @@
<img src="{% static "img/saleor-logo-black.svg" %}" alt="Testeor - Saleor demo store" height="38">
</a>
</div>
- <div class="col-2 col-md-4">
+ <div class="col-2 col-md-4 static">
{% if SEARCH_IS_ENABLED %}
<img class="hidden-md-up mobile-search-icon float-right" src="{% static "img/search-icon-black.svg" %}">
{% endif %}