From 0bb93fd1daaf23008e10218a00d702f3e884753f Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Thu, 20 Nov 2025 15:59:28 -0600 Subject: [PATCH] Show icons instead of hotkeys for btn--circle-mobile --- app/assets/stylesheets/buttons.css | 2 ++ app/views/events/index/_add_board_button.html.erb | 2 +- app/views/events/index/_add_card_button.html.erb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/buttons.css b/app/assets/stylesheets/buttons.css index 458cdf46a..69c2a682d 100644 --- a/app/assets/stylesheets/buttons.css +++ b/app/assets/stylesheets/buttons.css @@ -109,9 +109,11 @@ aspect-ratio: 1; padding: 0.5em; + kbd, span:last-of-type { display: none; } + } } diff --git a/app/views/events/index/_add_board_button.html.erb b/app/views/events/index/_add_board_button.html.erb index 3af54a792..613252ff3 100644 --- a/app/views/events/index/_add_board_button.html.erb +++ b/app/views/events/index/_add_board_button.html.erb @@ -1,7 +1,7 @@
<%= 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" %> Add a board B <% end %> diff --git a/app/views/events/index/_add_card_button.html.erb b/app/views/events/index/_add_card_button.html.erb index 59390375b..b653e89b5 100644 --- a/app/views/events/index/_add_card_button.html.erb +++ b/app/views/events/index/_add_card_button.html.erb @@ -1,7 +1,7 @@
<% 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" %> Add a card C <% end %>