Show icons instead of hotkeys for btn--circle-mobile

This commit is contained in:
Andy Smith
2025-11-20 15:59:28 -06:00
parent fdee7aaaa5
commit 0bb93fd1da
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -109,9 +109,11 @@
aspect-ratio: 1;
padding: 0.5em;
kbd,
span:last-of-type {
display: none;
}
}
}
@@ -1,7 +1,7 @@
<div class="header__actions header__actions--end">
<div>
<%= link_to new_board_path, class: "btn btn--link btn--circle-mobile", data: { controller: "hotkey", action: "keydown.b@document->hotkey#click" } do %>
<%= icon_tag "board", class: "show-on-touch" %>
<%= icon_tag "board" %>
<span class="overflow-ellipsis">Add a board</span>
<kbd class="hide-on-touch">B</kbd>
<% end %>
@@ -1,7 +1,7 @@
<div class="header__actions header__actions--start">
<% if board = user_filtering.single_board_or_first %>
<%= button_to board_cards_path(board), method: :post, class: "btn btn--link btn--circle-mobile", data: { controller: "hotkey", action: "keydown.c@document->hotkey#click" } do %>
<%= icon_tag "add", class: "show-on-touch" %>
<%= icon_tag "add" %>
<span class="overflow-ellipsis">Add a card</span>
<kbd class="hide-on-touch">C</kbd>
<% end %>