[UI] Fixed bug in CUSTOM sites filtering (thanks barbaz for reporting).

This commit is contained in:
hackademix 2020-12-02 23:02:22 +01:00
parent 77ef8164f3
commit 84b4a33b94
2 changed files with 7 additions and 2 deletions

View File

@ -146,6 +146,11 @@ html.tor .tor, html:not(.tor) .not-tor {
}
.site.filtered, .site.filtered + .customizer {
display: none;
}
#sites .customizing .presets {
padding-bottom: 0 !important;
margin-bottom: 0 !important;

View File

@ -921,9 +921,9 @@ var UI = (() => {
key = Sites.toExternal(key);
for (let r of this.allSiteRows()) {
if (r.querySelector(".full-address").textContent.trim().includes(key)) {
r.style.display = "";
r.classList.remove("filtered");
} else {
r.style.display = "none";
r.classList.add("filtered");
}
}
}