Skip to content

Commit dd40841

Browse files
committed
Fix UI
1 parent 637b050 commit dd40841

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

landolfio/inventory_frontend/templates/detail.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,10 @@ <h5 class="card-title mb-0">{% translate "Attachments" %}</h5>
622622
{% if asset.attachments.exists %}
623623
<div class="d-flex gap-2">
624624
<button type="button" class="btn btn-sm btn-outline-secondary" id="toggle-select-all-btn">
625-
<i class="fas fa-check-square me-1"></i>{% translate "Select All" %}
625+
<i class="fas fa-check-square"></i><span class="d-none d-sm-inline ms-1">{% translate "Select All" %}</span>
626626
</button>
627627
<button type="button" class="btn btn-sm btn-primary" id="download-zip-btn" style="display: none;">
628-
<i class="fas fa-download me-1"></i>{% translate "Download ZIP" %}
628+
<i class="fas fa-download"></i><span class="d-none d-sm-inline ms-1">{% translate "Download ZIP" %}</span>
629629
</button>
630630
</div>
631631
{% endif %}
@@ -1482,8 +1482,8 @@ <h5 class="card-title">{% translate "Divested" %}</h5>
14821482
// Update button text and icon
14831483
const icon = this.querySelector('i');
14841484
const text = allSelected ? '{% translate "Deselect All" %}' : '{% translate "Select All" %}';
1485-
icon.className = allSelected ? 'fas fa-square me-1' : 'fas fa-check-square me-1';
1486-
this.innerHTML = icon.outerHTML + text;
1485+
icon.className = allSelected ? 'fas fa-square' : 'fas fa-check-square';
1486+
this.innerHTML = icon.outerHTML + '<span class="d-none d-sm-inline ms-1">' + text + '</span>';
14871487
});
14881488

14891489
// Update download button visibility when individual checkboxes change
@@ -1495,8 +1495,8 @@ <h5 class="card-title">{% translate "Divested" %}</h5>
14951495
allSelected = checkedCount === checkboxes.length;
14961496
const icon = toggleSelectAllBtn.querySelector('i');
14971497
const text = allSelected ? '{% translate "Deselect All" %}' : '{% translate "Select All" %}';
1498-
icon.className = allSelected ? 'fas fa-square me-1' : 'fas fa-check-square me-1';
1499-
toggleSelectAllBtn.innerHTML = icon.outerHTML + text;
1498+
icon.className = allSelected ? 'fas fa-square' : 'fas fa-check-square';
1499+
toggleSelectAllBtn.innerHTML = icon.outerHTML + '<span class="d-none d-sm-inline ms-1">' + text + '</span>';
15001500
});
15011501
});
15021502

0 commit comments

Comments
 (0)