From fe06b41ade4b592f39e1ffd93c00d4503703933d Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 10 Nov 2025 18:25:11 -0600 Subject: [PATCH] Add a distinct edit button --- app/views/cards/container/_title.html.erb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index ee18dec9f..de52542fe 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -4,9 +4,13 @@ <%= link_to card.title, edit_card_path(card), class: "card__title-link" %> -
- <%= card.description %> -
+ <% unless card.description.blank? %> +
+ <%= card.description %> +
+ <% end %> + + <%= link_to "Edit", edit_card_path(card), class: "btn btn--reversed fit-content", style: "--btn-background: #{card.color}" %> <% end %> <% else %> <%= form_with model: card, id: "card_form", data: { controller: "autoresize auto-save" } do |form| %>