From e895d2b52a91ef20b8993a534ba5bc93b870eec7 Mon Sep 17 00:00:00 2001 From: CrazyRoka Date: Mon, 6 Dec 2021 11:47:20 +0200 Subject: [PATCH] Fixed error in Firefox and selected button style --- util/gh-pages/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/util/gh-pages/index.html b/util/gh-pages/index.html index f1e652d2a..e73b0d95c 100644 --- a/util/gh-pages/index.html +++ b/util/gh-pages/index.html @@ -72,6 +72,13 @@ Otherwise, have a great day =^.^= box-shadow: 0 0 3px var(--searchbar-shadow-color); } + div.panel div.panel-body .open button.dropdown-toggle { + background: var(--searchbar-bg); + color: var(--searchbar-fg); + border-color: var(--theme-popup-border); + filter: brightness(90%); + } + .dropdown-toggle .badge { background-color: #777; } @@ -536,7 +543,8 @@ Otherwise, have a great day =^.^= }; $scope.groups = GROUPS_FILTER_DEFAULT; $scope.toggleDropdown = function (name, $event) { - if (name === $scope.selectedDropdown && $event.path.find(x => x.tagName === 'BUTTON')) { + const target = $event.target; + if (name === $scope.selectedDropdown && target.closest('button')) { $scope.selectedDropdown = undefined; } else { $scope.selectedDropdown = name;