fixed mobile sub-cats

This commit is contained in:
muammertop 2021-04-16 21:16:59 +03:00
parent 120aa11ac7
commit 2b5b2c555b
2 changed files with 4 additions and 6 deletions

View File

@ -271,7 +271,7 @@ a.sort-by-open-dropdown:hover {
z-index: 999; z-index: 999;
display: flex !important; display: flex !important;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: start;
list-style: none; list-style: none;
} }

View File

@ -8,13 +8,12 @@
<li class="categories-list-li category-icon text-truncate d-flex justify-content-between text-dark"> <li class="categories-list-li category-icon text-truncate d-flex justify-content-between text-dark">
<a href="{{ url_current() }}?show=all" class="sub-category show-all"> <a href="{{ url_current() }}?show=all" class="sub-category show-all">
<span> <span>
{{ trans('visiosoft.theme.sahibinden::field.show_all_for_cats', {cat_name: mainCats|last.val})}} {{ trans('visiosoft.theme.sahibinden::field.show_all_for_cats', {cat_name: mainCats|last.name})}}
</span> </span>
<span> <span>
{% if setting_value('visiosoft.module.advs::show_ads_count') %} {% if setting_value('visiosoft.module.advs::show_ads_count') %}
{% set catAdsCount = entries('advs', 'advs').countAdsByCategoryId(mainCats[1].id) %}
<span class="text-muted main-advs-count"> <span class="text-muted main-advs-count">
({{ catAdsCount }}) ({{ mainCats|first.count }})
</span> </span>
{% endif %} {% endif %}
<i class="fa fa-angle-right"></i> <i class="fa fa-angle-right"></i>
@ -35,9 +34,8 @@
<span> <span>
{% if setting_value('visiosoft.module.advs::show_ads_count') %} {% if setting_value('visiosoft.module.advs::show_ads_count') %}
{% set catLevel = getParentsCount(sub_category.id) + 1 %} {% set catLevel = getParentsCount(sub_category.id) + 1 %}
{% set catAdsCount = entries('advs', 'advs').countAdsByCategoryId(sub_category.id, catLevel) %}
<span class="text-muted advs-count mr-1"> <span class="text-muted advs-count mr-1">
({{ catAdsCount }}) ({{ sub_category.count }})
</span> </span>
{% endif %} {% endif %}
<i class="fa fa-angle-right mt-1"></i> <i class="fa fa-angle-right mt-1"></i>