Hides filters if advanced search is opened when returning from single page.
This commit is contained in:
parent
f189f3a812
commit
296f24c4e2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue