Close pinned cards when you click since the tray persists between page loads

This commit is contained in:
Jason Zimdars
2025-05-08 16:23:57 -05:00
parent b1cd10afe7
commit 3bfb25ebc2
+1 -1
View File
@@ -15,7 +15,7 @@
<%= card.title %>
</h1>
<%= 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 %>
<span class="for-screen-reader"><%= card.title %></span>
<% end %>
</div>