Fixes #16452: Fix sizing of buttons within object attribute panels

This commit is contained in:
Jeremy Stretch 2024-06-17 10:32:47 -04:00
parent 9559349541
commit 6f35a2ac2b
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
</tr> </tr>
<tr> <tr>
<th scope="row">{% trans "Rack" %}</th> <th scope="row">{% trans "Rack" %}</th>
<td class="d-flex justify-content-between"> <td class="d-flex justify-content-between align-items-start">
{% if object.rack %} {% if object.rack %}
{{ object.rack|linkify }} {{ object.rack|linkify }}
<a href="{{ object.rack.get_absolute_url }}?device={{ object.pk }}" class="btn btn-primary btn-sm d-print-none" title="{% trans "Highlight device in rack" %}"> <a href="{{ object.rack.get_absolute_url }}?device={{ object.pk }}" class="btn btn-primary btn-sm d-print-none" title="{% trans "Highlight device in rack" %}">

View File

@ -73,7 +73,7 @@
</tr> </tr>
<tr> <tr>
<th scope="row">{% trans "Physical Address" %}</th> <th scope="row">{% trans "Physical Address" %}</th>
<td class="d-flex justify-content-between"> <td class="d-flex justify-content-between align-items-start">
{% if object.physical_address %} {% if object.physical_address %}
<span>{{ object.physical_address|linebreaksbr }}</span> <span>{{ object.physical_address|linebreaksbr }}</span>
{% if config.MAPS_URL %} {% if config.MAPS_URL %}