Styling for action icons

This commit is contained in:
Johannes Schriewer 2025-01-05 21:48:12 +01:00
parent 3ca926afac
commit a13a977206
3 changed files with 6 additions and 2 deletions

View file

@ -259,3 +259,7 @@ table.list tbody td {
position: relative; position: relative;
top: 4px; top: 4px;
} }
.right {
text-align: right;
}

View file

@ -123,7 +123,7 @@
{% for item in items %} {% for item in items %}
<tr> <tr>
<td><a href="{% url 'item-detail' item.id %}">{{ item.name }}</a></td> <td><a href="{% url 'item-detail' item.id %}">{{ item.name }}</a></td>
<td> <td class="right">
{% if item.documentation.all %} {% if item.documentation.all %}
<a class="datasheet" href="{{ item.documentation.all.0.file.url }}"><img class="icon" src="{% static "inventory/img/datasheet.svg" %}"></a> <a class="datasheet" href="{{ item.documentation.all.0.file.url }}"><img class="icon" src="{% static "inventory/img/datasheet.svg" %}"></a>
{% endif %} {% endif %}

View file

@ -90,7 +90,7 @@
{% for item in items %} {% for item in items %}
<tr> <tr>
<td><a href="{% url 'item-detail' item.id %}">{{ item.name }}</a></td> <td><a href="{% url 'item-detail' item.id %}">{{ item.name }}</a></td>
<td> <td class="right">
{% if item.documentation.all %} {% if item.documentation.all %}
<a class="datasheet" href="{{ item.documentation.all.0.file.url }}"><img class="icon" src="{% static "inventory/img/datasheet.svg" %}"></a> <a class="datasheet" href="{{ item.documentation.all.0.file.url }}"><img class="icon" src="{% static "inventory/img/datasheet.svg" %}"></a>
{% endif %} {% endif %}