When adding a card out of context, default to most recently accessed collection

This commit is contained in:
Jason Zimdars
2025-07-09 15:37:39 -05:00
parent 32e967c1f9
commit ed37bf0ff8
+1 -1
View File
@@ -10,7 +10,7 @@
<header class="header margin-block-end" style="--header-button-count: 3;">
<div class="header__actions header__actions--start">
<% if collection = @filter.single_collection || Current.user.collections.first %>
<% if collection = @filter.single_collection || Current.user.collections.ordered_by_recently_accessed.first %>
<%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link btn--circle-mobile" do %>
<%= icon_tag "add" %>
<span>Add a card</span>