From 3b38824ca775e53c863a32d1035418c57da911fb Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 1 Aug 2023 13:06:43 +0200 Subject: [PATCH] #11697 arrow left menu collapse --- pandora_console/general/main_menu.php | 8 ++++++++ pandora_console/include/styles/menu.css | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/pandora_console/general/main_menu.php b/pandora_console/general/main_menu.php index ceef9db595..9ddc30037a 100644 --- a/pandora_console/general/main_menu.php +++ b/pandora_console/general/main_menu.php @@ -185,6 +185,10 @@ echo ''; $(`#sub${this.id}`).hide(); }) } else if ($('#menu_full').hasClass('menu_full_collapsed')) { + $(".arrow_menu_right").each(function() { + $(this).removeClass('arrow_menu_right'); + $(this).addClass('arrow_menu_down'); + }); localStorage.setItem("menuType", "classic"); $('ul.submenu').css('left', '280px'); var menuType_val = localStorage.getItem("menuType"); @@ -273,6 +277,10 @@ echo ''; $('.menu_icon').mouseenter(function() { var menuType_val = localStorage.getItem("menuType"); if (!click_display && menuType_val === 'collapsed') { + $(".arrow_menu_down").each(function() { + $(this).removeClass('arrow_menu_down'); + $(this).addClass('arrow_menu_right'); + }); table_hover = $(this); handsIn = 1; openTime = new Date().getTime(); diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index 537dd90cf2..3639f257a1 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -630,6 +630,12 @@ ul li { z-index: 1; } +.arrow_menu_right { + background: url(../../images/menu/arrow_down_grey.svg) no-repeat 50% 100%; + z-index: 1; + transform: rotate(-0.25turn); +} + .span_selected { color: #1d7874 !important; font-weight: bold !important;