From 4415ab28efbdb1d385a81b537e65c4f3a07ac150 Mon Sep 17 00:00:00 2001 From: drlight17 <37434652+drlight17@users.noreply.github.com> Date: Mon, 23 Sep 2024 18:53:10 +0300 Subject: [PATCH] v 0.2.7-alpha --- styles.css | 7 +++++++ user_menu_observer.js | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/styles.css b/styles.css index eb4b8b3..21c325c 100644 --- a/styles.css +++ b/styles.css @@ -34,4 +34,11 @@ min-width: 100px } +/*to fix main_menu auto hide in 1024 width */ + +@media all and (max-width: 1024px) { + .app-navigation { + position:relative!important; + } +} /* Add styles here to customize the appearance of your app */ \ No newline at end of file diff --git a/user_menu_observer.js b/user_menu_observer.js index 1ef539e..79ea448 100644 --- a/user_menu_observer.js +++ b/user_menu_observer.js @@ -99,12 +99,13 @@ waitForElm('#content-vue > div').then((elm) => { }) $(elm).on("focusout", function() { //console.log('Navi lost focus!'); - if (($(object_under_cursor.closest('.app-navigation')).length<1) && !(block_navi_hide)) { - if ($('.app-navigation-toggle-wrapper button').attr('aria-expanded') === "true") { - $('.app-navigation-toggle-wrapper button').click(); + if (!block_navi_hide) { + if ($(object_under_cursor.closest('.app-navigation')).length<1) { + if ($('.app-navigation-toggle-wrapper button').attr('aria-expanded') === "true") { + $('.app-navigation-toggle-wrapper button').click(); + } } } }); - })