1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 01:16:10 +00:00

feat(tags): the tag filter as pills, below the state pills

The tag filter was a select beside the search box. It is now a row of
pills as the VM states' are, below them on the VM list and above the table
on the hosts list: All tags, No tag and each tag with how many have it.
The state and tag pills share one helper in table_filter.js; a badge
chooses its tag's pill, the choice is remembered as before.
This commit is contained in:
catborise 2026-11-19 08:40:36 +03:00
parent 6680e14ce4
commit 0e711ec058
13 changed files with 243 additions and 221 deletions

View file

@ -304,9 +304,15 @@ fieldset:not(:has(input[value="set"]:checked)) > .console-new-password {
.form-section-fields:has(input[name="usable_password"][value="false"]:checked) > .with-password {
display: none;
}
/* a list's tag filter: a long tag name does not widen it beyond a phone's width */
#tag-filter {
max-width: 15rem;
/* a list's tag pills and a row's tag badges: a long tag name breaks within, not beyond a phone's width */
#tag-pills .nav-link,
.tag-badge {
max-width: 100%;
overflow-wrap: anywhere;
text-align: start;
}
.tag-badge {
white-space: normal;
}
/* a VM's or host's tags: smaller than other badges, so a row with several stays narrow */
.tag-badge {