From 2473e1f3772ec91296c55a418ff7f3e06976a8e0 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Mon, 9 Feb 2026 20:20:12 +0000 Subject: [PATCH] fix(templates): wrap flag and country in span for correct mobile flex layout The flag emoji and country name were separate flex items inside mobile card td cells, causing the flag to float away from the country text. Wrapping them in a single span keeps them together as one flex item. --- templates/pages/roaster.html | 8 +++++--- templates/partials/detail_cards.html | 16 ++++++++++------ templates/partials/lists/cafe_list.html | 16 ++++++++++------ templates/partials/lists/roast_list.html | 8 +++++--- templates/partials/lists/roaster_list.html | 16 ++++++++++------ 5 files changed, 40 insertions(+), 24 deletions(-) diff --git a/templates/pages/roaster.html b/templates/pages/roaster.html index 6f75d35..54e7ee5 100644 --- a/templates/pages/roaster.html +++ b/templates/pages/roaster.html @@ -33,9 +33,11 @@
Country
- {% if !roaster.country_flag.is_empty() %} - {{ roaster.country_flag }} - {% endif %}{{ roaster.country }} + {% if !roaster.country_flag.is_empty() %} + {{ roaster.country_flag }} + {% endif %}{{ roaster.country }}
{% if let Some(c) = roaster.city %} diff --git a/templates/partials/detail_cards.html b/templates/partials/detail_cards.html index 6b716ff..109442a 100644 --- a/templates/partials/detail_cards.html +++ b/templates/partials/detail_cards.html @@ -62,9 +62,11 @@
Origin
- {% if !origin_flag.is_empty() %} - {{ origin_flag }} - {% endif %}{{ origin }} + {% if !origin_flag.is_empty() %} + {{ origin_flag }} + {% endif %}{{ origin }}
{% endif %} @@ -204,9 +206,11 @@
Country
- {% if !country_flag.is_empty() %} - {{ country_flag }} - {% endif %}{{ country }} + {% if !country_flag.is_empty() %} + {{ country_flag }} + {% endif %}{{ country }}
{% if let Some(c) = city %} diff --git a/templates/partials/lists/cafe_list.html b/templates/partials/lists/cafe_list.html index 82184c6..72c4473 100644 --- a/templates/partials/lists/cafe_list.html +++ b/templates/partials/lists/cafe_list.html @@ -71,9 +71,11 @@ data-label="Location" class="px-4 py-3 whitespace-nowrap md:hidden" > - {% if !cafe.country_flag.is_empty() %} - {{ cafe.country_flag }} - {% endif %}{{ cafe.country }} + {% if !cafe.country_flag.is_empty() %} + {{ cafe.country_flag }} + {% endif %}{{ cafe.country }} - {% if !cafe.country_flag.is_empty() %} - {{ cafe.country_flag }} - {% endif %}{{ cafe.country }} + {% if !cafe.country_flag.is_empty() %} + {{ cafe.country_flag }} + {% endif %}{{ cafe.country }} - {% if !roast.origin_flag.is_empty() %} - {{ roast.origin_flag }} - {% endif %}{{ roast.origin }} + {% if !roast.origin_flag.is_empty() %} + {{ roast.origin_flag }} + {% endif %}{{ roast.origin }} {% if !roast.producer.is_empty() %}