Use b for back-to-board, indicate shortcut visibly

This commit is contained in:
Jason Zimdars
2025-11-10 14:34:08 -06:00
parent e975a7396d
commit 64e466d903
+2 -2
View File
@@ -1,8 +1,8 @@
module BoardsHelper
def link_back_to_board(board)
link_to board, class: "btn borderless txt-medium",
data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click click->turbo-navigation#backIfSamePath" } do
tag.span ("←" + tag.strong(board.name, class: "overflow-ellipsis")).html_safe
data: { controller: "hotkey", action: "keydown.b@document->hotkey#click click->turbo-navigation#backIfSamePath" } do
tag.span ("←" + tag.strong(board.name, class: "overflow-ellipsis") + tag.kbd("b", class: "txt-x-small margin-inline-start hide-on-touch")).html_safe
end
end