Skip to content

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

Fix filter menu rendering

dominik-zeglen6ba7cf80549f
diff --git a/saleor/static/scss/components/_filters.scss b/saleor/static/scss/components/_filters.scss
index fc1681e6f8..8c7b5ac5be 100644
--- a/saleor/static/scss/components/_filters.scss
+++ b/saleor/static/scss/components/_filters.scss
@@ -62,6 +62,9 @@
@include media-breakpoint-down(sm) {
padding: $global-padding*3 0 $global-padding*2;
}
+ @media (max-width: 370px) {
+ padding-top: 5rem;
+ }
h2 {
font-size: 1.8rem;
color: $body-color;
@@ -116,6 +119,11 @@
margin-left: $global-margin/2;
border-radius: 50%;
}
+ &__wrapper {
+ @include media-breakpoint-down(sm) {
+ padding-top: 8px;
+ }
+ }
}
.sort-by {
@@ -172,16 +180,16 @@
}
}
&:before {
- content: '';
- display: block;
- width: 15px;
- height: 10px;
- position: absolute;
- top: -10px;
- right: 15px;
- background-color: $light-gray;
- clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
- }
+ content: '';
+ display: block;
+ width: 15px;
+ height: 10px;
+ position: absolute;
+ top: -10px;
+ right: 15px;
+ background-color: $light-gray;
+ clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
+ }
}
.click-area {
width: 100%;
diff --git a/templates/category/index.html b/templates/category/index.html
index 71f58609b7..1e3e8e3733 100644
--- a/templates/category/index.html
+++ b/templates/category/index.html
@@ -38,10 +38,10 @@
<li><a href='{{ category.get_absolute_url }}'>{{ category.name }}</a></li>
</ul>
</div>
- <div class="col-md-5">
+ <div class="col-md-5 filters-menu__wrapper">
<div class="row">
<div class="col-6 col-md-2 col-lg-6 filters-menu">
- <span class="filters-menu__label d-sm-none">Filters</span>
+ <span class="filters-menu__label d-md-none">Filters</span>
</div>
<div class="col-6 col-md-10 col-lg-6">
<div class="sort-by">