1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(instances): many tags no longer push the VM page's buttons below its name

The name's side of the summary heading did not shrink, so a VM with several tags
wrapped OS details and Refresh onto a line of their own. From 576px the buttons
now keep the name's row and the tags wrap within the name's side.
This commit is contained in:
catborise 2026-11-25 13:29:08 +03:00
parent 5d0f658075
commit b4c7ecddc4

View file

@ -23,8 +23,9 @@
{% if can_open_console and vdi_reachable %}data-vdi-url="{% url 'vdi_url' compute.id instance.name %}"{% endif %}>
<div class="card-body p-3 d-flex flex-wrap flex-md-nowrap gap-3">
<div class="flex-grow-1" style="min-width: 0;">
<div class="d-flex flex-wrap justify-content-between align-items-start gap-2">
<div style="min-width: 0;">
{# from 576px the buttons keep the name's row: many tags wrap within the name's side #}
<div class="d-flex flex-wrap flex-sm-nowrap justify-content-between align-items-start gap-2">
<div class="flex-grow-1" style="min-width: 0;">
<div class="d-flex flex-wrap align-items-center gap-2">
<h1 class="h4 mb-0 text-break" id="vm-name">{{ instance.name }}</h1>
{% vm_state instance.status as state %}
@ -35,7 +36,7 @@
{% if instance.title %}<p class="text-body-secondary mb-1">{{ instance.title }}</p>{% endif %}
{% include 'instances/host_link.html' %}
</div>
<div class="d-flex gap-2">
<div class="d-flex gap-2 flex-shrink-0">
{% if instance.is_template and can_clone %}
<button type="button" class="btn btn-sm btn-primary" id="clone-button">{% bs_icon 'copy' %} {% trans "Clone" %}</button>
{% endif %}