mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 09:26:03 +00:00
On a phone the settings page opened with its group index on seven lines, and the index was gone once the page, nine screens long, was scrolled. Below the lg breakpoint it is now one row that scrolls sideways and sticks under the navbar (navbar_height.js gives what sticks the navbar's height, which differs between themes and grows when the phone menu opens). Turkish said "VM" in 65 messages and "sanal makine" everywhere else; it now says "sanal makine" throughout. Headings and buttons that still capitalised every word follow the panel's sentence case, in English too (Change password, SSH keys, Power off, ...). Wrong translations fixed: a password that is set read as the command "Ayarla", the firmware setting was called a chip type, Create flavor said Create user, the console viewport setting was called a port, a DRBD typo, and host and interface are sunucu and arabirim as on every page. A group's save button reads "Kaydet: <group>".
11 lines
492 B
JavaScript
11 lines
492 B
JavaScript
// The sticky navbar's height as --navbar-height on the page, for what sticks
|
|
// below it: themes give the navbar different heights, and a phone's menu opens it.
|
|
(function () {
|
|
var navbar = document.querySelector(".navbar.sticky-top");
|
|
if (!navbar) return;
|
|
function measure() {
|
|
document.documentElement.style.setProperty("--navbar-height", navbar.offsetHeight + "px");
|
|
}
|
|
measure();
|
|
if (window.ResizeObserver) new ResizeObserver(measure).observe(navbar);
|
|
})();
|