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| %>