From 35e84602192c874efd959bcdc9b7251f6f218fc5 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Tue, 3 Feb 2026 13:08:07 +0000 Subject: [PATCH] fix(brews): lay out action icons horizontally and merge temp into recipe Wrap the brew-again form and delete button in an inline-flex container to match the horizontal layout used in other tables. Fold water temperature into the Recipe column as desktop subtext alongside the ratio, reducing the table from 7 to 6 columns and eliminating the horizontal scrollbar. Document the Actions column pattern in CLAUDE.md. --- CLAUDE.md | 15 +++++++ templates/partials/brew_list.html | 71 ++++++++++++++++--------------- 2 files changed, 51 insertions(+), 35 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8994159..fa77fc1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -366,6 +366,21 @@ Every table has a sortable "Added" column as its **first column**, sorted by `cr The `text-xs font-medium text-stone-600` classes give it a muted, compact appearance compared to the default `text-sm` body text. +### Actions Column + +When a row has multiple action buttons/icons, wrap them in `
` inside the `` to keep them horizontal. Without this wrapper, block-level elements like `
` will stack vertically. + +```html + +
+ + + + +
+ +``` + ### Responsive Table Pattern Tables use the `responsive-table` CSS class which converts rows to card-style layout on mobile (`max-width: 767px`). The CSS in `styles.css` hides `` and uses `data-label` attributes on `` elements to show field labels. diff --git a/templates/partials/brew_list.html b/templates/partials/brew_list.html index 133e958..ad460c2 100644 --- a/templates/partials/brew_list.html +++ b/templates/partials/brew_list.html @@ -14,7 +14,6 @@ Coffee Grind Recipe - Temp Brewer {% if is_authenticated %} Actions @@ -51,10 +50,10 @@ {{ brew.grinder_name }}
{{ brew.coffee_weight }} / {{ brew.water_volume }}
- + {{ brew.ratio }} - {{ brew.water_temp }} + {{ brew.water_temp }}
{{ brew.brewer_name }}
{% if let Some(fp_name) = brew.filter_paper_name %} @@ -66,47 +65,49 @@ {% endif %} {% if is_authenticated %} -
- - - - - - {% if let Some(fp_id) = brew.filter_paper_id %} - - {% endif %} - - +
+ + + + + + + {% if let Some(fp_id) = brew.filter_paper_id %} + + {% endif %} + + + + - - +
{% endif %}