diff --git a/app/helpers/collections_helper.rb b/app/helpers/collections_helper.rb index 3342cb480..d10b00a4c 100644 --- a/app/helpers/collections_helper.rb +++ b/app/helpers/collections_helper.rb @@ -1,9 +1,8 @@ module CollectionsHelper def link_back_to_collection(collection) - link_to collection, class: "header__title btn borderless txt-large", - style: "--btn-padding: 0.25ch 1ch 0.25ch 0.75ch; view-transistion-name: card-collection-title;", + link_to collection, class: "btn borderless txt-medium", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click click->turbo-navigation#backIfSamePath" } do - tag.span ("←" + tag.strong(collection.name, class: "font-black")).html_safe + tag.span ("←" + tag.strong(collection.name, class: "overflow-ellipsis")).html_safe end end diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index 0d4be32cb..5c5549fa4 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -6,7 +6,9 @@ <% end %> <% content_for :header do %> - <%= link_back_to_collection(@card.collection) %> +
+ <%= link_back_to_collection(@card.collection) %> +
<% end %> <%= turbo_stream_from @card %>