WebUI: Filter list improvements

A couple of tweaks to make them a little bit better:
1. Make highlighting functions more consistent (this also fixes minuscule bug when no filter item in tracker list is highlighted due to a type mismatch)
2. Use [event delegation](https://javascript.info/event-delegation) to handle filter toggling & item selection
3. Other minor improvements (everything should work like it was previously)

PR #21191.
This commit is contained in:
skomerko
2024-08-25 08:23:35 +02:00
committed by GitHub
parent 39dd415d43
commit 5b7c9d5725
5 changed files with 163 additions and 150 deletions

View File

@@ -545,7 +545,6 @@ ul.filterList .selectedFilter img {
filter: var(--color-icon-hover);
}
ul.filterList a,
ul.filterList span.link {
align-items: center;
color: inherit;