mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(ui): sizes in the units the forms ask in, percentages as the language writes them
- binary_size filter (common_tags): every size on the pages is B/KiB/MiB/GiB/TiB with the language's decimal mark; Django's filesizeformat said GB for GiB, so a page showed "512,0 MB / 3,8 GB" beside "0,4 / 3,8 GiB" and a disk "20,0 GB" next to a GiB field - percent filter and Intl percent in charts.js, the job panel and the new-VM dialog: 13% in English, %13 in Turkish (pages had "13 %", "%11" and "13%") - the Jobs page and panel say in whole sentences that the job worker is not running and that jobs wait for it, instead of a sentence glued to a date - job state badges start with a capital, as the VM state badges (CSS, so the label stays lowercase inside sentences) - profile card shows the username under the name only when there is a full name - Turkish: hostname, revert snapshot, snapshot count, API token and worker texts
This commit is contained in:
parent
50fa42181b
commit
7408a575d6
52 changed files with 241 additions and 127 deletions
|
|
@ -279,6 +279,13 @@ button.vcpu-cell:disabled { opacity: .65; }
|
|||
.nic-wire::after { right: -3px; }
|
||||
.nic-wire.nic-up { color: var(--bs-success); border-top-style: solid; }
|
||||
|
||||
/* a job state badge starts with a capital, as the VM state badges; the label stays
|
||||
lowercase for sentences ("… is running on this resource"), and the page's lang
|
||||
gives Turkish its dotted İ */
|
||||
.job-state::first-letter {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* a log message keeps a readable width when its table scrolls on a phone */
|
||||
.log-message {
|
||||
min-width: 16rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue