From e9df8a3d27ea154e4a280cc4be465156a54610cd Mon Sep 17 00:00:00 2001 From: Andrew Yager Date: Sat, 28 Feb 2026 15:59:22 +1100 Subject: [PATCH] fix: correct broken div nesting in location detail mobile cards The thumbnail commit (4024f5e) introduced an extra in the mobile card layout, causing the sm:hidden container to close after the first card. Subsequent cards rendered outside the container, appearing as unstyled cards on desktop below the table. Co-Authored-By: Claude Opus 4.6 --- src/templates/assets/location_detail.html | 43 ++++++++++++----------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/templates/assets/location_detail.html b/src/templates/assets/location_detail.html index f745786..d6d48ad 100644 --- a/src/templates/assets/location_detail.html +++ b/src/templates/assets/location_detail.html @@ -220,29 +220,30 @@

{{ child.name }}

{% endif %} -
-
-
{{ asset.name }}
-
{{ asset.barcode }}
-
-
- {% if asset.is_checked_out %} - Checked out - {% if active_tab == "checked_out" and asset.checkout_due_date %} -
Due {{ asset.checkout_due_date|date:"d M Y" }} - {% endif %} - {% else %} - {{ asset.get_status_display }} - {% endif %} +
+
+
+
{{ asset.name }}
+
{{ asset.barcode }}
+
+
+ {% if asset.is_checked_out %} + Checked out + {% if active_tab == "checked_out" and asset.checkout_due_date %} +
Due {{ asset.checkout_due_date|date:"d M Y" }} + {% endif %} + {% else %} + {{ asset.get_status_display }} + {% endif %} +
+
+
+ {% if asset.category %}{{ asset.category.name }}{% endif %} + {% if asset.department %}{{ asset.department.name }}{% endif %} + {{ asset.get_condition_display }} +
-
- {% if asset.category %}{{ asset.category.name }}{% endif %} - {% if asset.department %}{{ asset.department.name }}{% endif %} - {{ asset.get_condition_display }} -
-
- {% endfor %}