Hides filters if advanced search is opened when returning from single page.

This commit is contained in:
mateuswetah 2020-04-27 16:07:26 -03:00
parent f189f3a812
commit 296f24c4e2
4 changed files with 4 additions and 3 deletions

View File

@ -1206,7 +1206,7 @@
if (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) {
const isMobile = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= 768;
if (isMobile) {
if (isMobile || this.openAdvancedSearch) {
this.isFiltersModalActive = false;
} else {
this.isFiltersModalActive = true;

View File

@ -150,6 +150,7 @@
width: 100%;
display: flex;
margin: 0 !important;
background-color: var(--tainacan-item-background-color);
.list-metadata {
padding: 0.75em 1.375em;

View File

@ -1082,7 +1082,7 @@
if (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) {
this.isMobile = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= 768;
if (this.isMobile || this.startWithFiltersHidden)
if (this.isMobile || this.startWithFiltersHidden || this.openAdvancedSearch)
this.isFiltersModalActive = false;
else
this.isFiltersModalActive = true;

View File

@ -103,7 +103,7 @@
&.is-filters-menu-open {
.items-list-area {
width: calc(100% - var(--tainacan-filter-menu-width-theme));
max-width: calc(100% - var(--tainacan-filter-menu-width-theme));
}
.filters-menu {
padding-top: 12px;