fix PopUpNav

This commit is contained in:
2022-11-29 13:07:54 +00:00
parent 02130df21f
commit 9a59727124
2 changed files with 4 additions and 3 deletions

View File

@@ -3210,7 +3210,7 @@
},
getShowNavBarLg() {
if (screen.width >= 1024) {
return this.showNavBar = true;
this.showNavBar = true;
}
return this.showNavBar;
}
@@ -3224,7 +3224,7 @@
closeShowPopupNav() {
this.showPopupNav = false;
},
getShowPopupNavLg() {
getNotShowPopupNavLg() {
if (screen.width < 1024) {
this.showPopupNav = true;
}
@@ -3234,6 +3234,7 @@
if (screen.width >= 1024) {
return false;
}
return true;
}
}));
alpine_default.data("search", () => ({

View File

@@ -109,7 +109,7 @@
<a class="rounded-r" href="{% url 'authentications:logout' %}?next={{ request.path }}"><i class="fa-solid fa-power-off"></i></a>
</div>
<div class="navbar-subcontentList"
x-show="getShowPopupNavLg"
x-show="getNotShowPopupNavLg"
x-transition:enter="transition ease-out duration-300"
x-transition:enter-start="transform origin-top opacity-0 scale-95"
x-transition:enter-end="transform origin-top opacity-100 scale-100"