Fix and improve tag search menu

Show also "empty tags", where the count is 0. Before only tags with a
count > 0 were displayed. When searching this is fine, but when using
drag&drop to attach tags to items, it is good to see all. They can be
hidden via a button.

The tags are now ordered by their count descending, but regarding to
the overall count – not the current view. Otherwise the tags are
reordered when clicking on them, which is confusing. Also it then
shows the "more important" (most used) tags first, even when the
result is a subset.

A fix was made related to updating the menu. When coming back from
the detail view where a tag with prior count=0 was associated, the
menu didn't show it, because it relied on a previous state, where this
tag were not included.
This commit is contained in:
Eike Kettner
2021-01-11 12:07:37 +01:00
parent 3fccc3df39
commit 7beda302b2
3 changed files with 316 additions and 187 deletions

View File

@ -291,8 +291,8 @@ label span.muted {
margin-left: 0.5em;
}
.width-70 {
width: 70%;
.width-80 {
width: 80%;
}
.ui.search.dropdown.open, .ui.selection.dropdown.open {