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

fix(ui): a host's pages on a phone: one row of sections, tables that fit

On a phone the host's section menu wrapped to three lines, each new line
starting with a divider. It is now one row that scrolls sideways, with the
current section in sight (scroll_rows.js, which also takes over the VM page's
tab rows from instance_page.js).

The filter list, a filter's rules and the PCI and USB device tables were wider
than a phone and hid their actions and users off screen; on a phone they now
keep the name, the key column and the actions, as the other lists do.

The overview's live CPU and memory figures, the chart axes and tooltips, and
the VM page's stats now write numbers as the page's language does (a decimal
comma in Turkish), like the cards beside them.

The capacity cards said "0 bytes running"; they now say what they count:
"0 bytes in running VMs".

A pool's type is written as libvirt names it on both the list and its page,
and the device search sits where the interfaces search does.
This commit is contained in:
catborise 2026-11-22 14:40:23 +03:00
parent 701d9b1f0a
commit a2da2ab394
24 changed files with 84 additions and 55 deletions

View file

@ -129,14 +129,21 @@ th[aria-sort="ascending"]:not([data-sort-method="none"])::after {
height: 160px;
}
/* the host's sections (computes/host_nav.html) on one line in every theme:
/* the host's sections (computes/host_nav.html) on one line in every theme,
scrolled sideways on a phone:
one font size, and the divider spaced alike on its two sides (Zephyr
doubles the space after it) */
.host-nav .breadcrumb {
--bs-breadcrumb-item-padding-x: .5rem;
/* room for a link's focus outline inside the scrolling row, in a theme without padding */
padding: max(.25rem, var(--bs-breadcrumb-padding-y, 0px)) max(.25rem, var(--bs-breadcrumb-padding-x, 0px));
font-size: .875rem;
}
.host-nav .breadcrumb-item {
flex-shrink: 0;
}
.host-nav .breadcrumb-item + .breadcrumb-item::before {
padding-right: var(--bs-breadcrumb-item-padding-x);
}