From 3bfb25ebc272c5b3c1eded93582edef9f4706b52 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 8 May 2025 16:23:57 -0500 Subject: [PATCH] Close pinned cards when you click since the tray persists between page loads --- app/views/cards/display/_preview.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cards/display/_preview.html.erb b/app/views/cards/display/_preview.html.erb index d6b35c135..b6c2e4ad9 100644 --- a/app/views/cards/display/_preview.html.erb +++ b/app/views/cards/display/_preview.html.erb @@ -15,7 +15,7 @@ <%= card.title %> - <%= link_to collection_card_path(card.collection, card), class: "card__link", title: card_title_tag(card), data: { turbo_frame: "_top" } do %> + <%= link_to collection_card_path(card.collection, card), class: "card__link", title: card_title_tag(card), data: { action: "dialog#close", turbo_frame: "_top" } do %> <%= card.title %> <% end %>