From 4191f9859ec1ec524167478c6fffce1da219a8fe Mon Sep 17 00:00:00 2001 From: maTh Date: Mon, 11 Apr 2022 22:54:19 +0200 Subject: Improved: dropdown close area (#4293) * fix Ansum theme: close X in white * fix Mapco theme: close X in white * move the dropdown-close outside of the list * CSS * bring flux elemt behind the grey background * Update main.js --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/scripts/main.js') diff --git a/p/scripts/main.js b/p/scripts/main.js index 6e9f761cc..bd531ad02 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -692,7 +692,7 @@ function auto_share(key) { key = parseInt(key); if (key <= shares.length) { shares[key - 1].click(); - share.parentElement.querySelector('.dropdown-menu .dropdown-close a').click(); + share.parentElement.querySelector('.dropdown-menu + a.dropdown-close').click(); } } -- cgit v1.2.3