From 701d9b1f0a27c8d269afc89de7e1df84e9cc516b Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 22 Nov 2026 12:51:24 +0300 Subject: [PATCH] fix(ui): a VM page on a phone opens on its tab, not under it On a phone the VM card's facts, three rows of section buttons and up to three rows of settings tabs pushed every tab's content below the first screen. Both tab rows are now a single row that scrolls sideways, the chosen tab is kept in sight, and the card's facts run inline below the lg breakpoint. The Migrate tab of a VM that cannot be migrated shows only the reason, as Bulk Migrate does, not an empty destination list and a disabled button. The card's Refresh and OS details buttons are outlined, like the panel's other secondary buttons; filled gray read as disabled in the united theme. --- instances/templates/instance.html | 33 ++++++++++--------- .../templates/instances/settings_tab.html | 16 ++++----- instances/tests/test_migrate_form.py | 11 ++++--- static/js/instance_page.js | 8 +++++ 4 files changed, 38 insertions(+), 30 deletions(-) diff --git a/instances/templates/instance.html b/instances/templates/instance.html index a2ff2b18..3b37b586 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -38,9 +38,9 @@ {% endif %} {% if instance.guest_agent_ready %} - + {% endif %} - {% bs_icon 'arrow-clockwise' %} {% trans "Refresh" %} + {% bs_icon 'arrow-clockwise' %} {% trans "Refresh" %} {# shown by instance_status.js while the VM's state cannot be read #} @@ -58,28 +58,29 @@ {% endif %}
-
-
{% trans "CPU" %}
-
{% firstof instance.cur_vcpu instance.vcpu %} {% trans "of" %} {{ instance.vcpu }} {% trans "vCPU" %}
+
+
{% trans "CPU" %}
+
{% firstof instance.cur_vcpu instance.vcpu %} {% trans "of" %} {{ instance.vcpu }} {% trans "vCPU" %}
-
-
{% trans "Memory" %}
-
{{ instance.cur_memory }} MiB
+
+
{% trans "Memory" %}
+
{{ instance.cur_memory }} MiB
-
-
{% trans "Disks" %}
-
{% for disk in instance.disks %}{{ disk.dev }} {{ disk.size|filesizeformat }}{% if not forloop.last %} · {% endif %}{% empty %}{% trans "None" %}{% endfor %}
+
+
{% trans "Disks" %}
+
{% for disk in instance.disks %}{{ disk.dev }} {{ disk.size|filesizeformat }}{% if not forloop.last %} · {% endif %}{% empty %}{% trans "None" %}{% endfor %}
{% if not instance.is_template %} -
-
{% trans "IPv4" %}
-
{% trans "Reading…" %}
+
+
{% trans "IPv4" %}
+
{% trans "Reading…" %}
{% endif %}
-