From 37cd595c938c62a3dfb5d933652612fb513abd45 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 4 Feb 2026 17:43:36 +0000 Subject: [PATCH] fix(home): truncate long names in brew and bag cards Add text truncation with ellipsis to roast and roaster names in the recent brews and open bags cards to prevent layout inconsistency when titles wrap. --- templates/home.html | 8 ++++---- templates/partials/bag_card.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/home.html b/templates/home.html index 79b1452..c8fbc47 100644 --- a/templates/home.html +++ b/templates/home.html @@ -191,10 +191,10 @@
{% for brew in recent_brews %} -
-
- {{ brew.roast_name }} -

{{ brew.roaster_name }}

+
+
+ {{ brew.roast_name }} +

{{ brew.roaster_name }}

{{ brew.coffee_weight }} / {{ brew.water_volume }} · {{ brew.ratio }} · {{ brew.water_temp }}

diff --git a/templates/partials/bag_card.html b/templates/partials/bag_card.html index 1450db9..501fbb2 100644 --- a/templates/partials/bag_card.html +++ b/templates/partials/bag_card.html @@ -1,9 +1,9 @@ {% import "partials/icons.html" as icons %} {% macro card(bag, is_authenticated) %}
-
- {{ bag.roast_name }} -

{{ bag.roaster_name }}

+
+ {{ bag.roast_name }} +

{{ bag.roaster_name }}

{{ bag.remaining }}g