From a712d92b5268c06ca6f6680bf66bab8ffbaca930 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 6 Dec 2017 04:21:30 +0300 Subject: [PATCH] fixup db621b86: add .active class only to the block title --- manage/filters.js | 2 +- manage/manage.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manage/filters.js b/manage/filters.js index 522694f6..e98b754b 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -333,7 +333,7 @@ function showFiltersStats() { debounce(showFiltersStats, 100); return; } - $('#filters').classList.toggle('active', filtersSelector.hide !== ''); + $('#filters summary').classList.toggle('active', filtersSelector.hide !== ''); const numTotal = BG.cachedStyles.list.length; const numHidden = installed.getElementsByClassName('entry hidden').length; const numShown = Math.min(numTotal - numHidden, installed.children.length); diff --git a/manage/manage.css b/manage/manage.css index 234d334d..dfc1affd 100644 --- a/manage/manage.css +++ b/manage/manage.css @@ -811,8 +811,8 @@ input[id^="manage.newUI"] { margin-top: 4px; } -#filters:not(.active) #reset-filters, -#filters:not(.active) #filters-stats { +#filters summary:not(.active) #reset-filters, +#filters summary:not(.active) #filters-stats { display: none; }