From 9c4a35986513d88ba16571ee3b12e5bf0a4e128f Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 12 May 2025 21:50:32 -0500 Subject: [PATCH] Ensure checkboxes in menus have full size click targets --- .../cards/index/_collections_filter.html.erb | 10 ++++---- .../filter/_all_collections_option.html.erb | 23 ++++++++----------- .../events/filter/_collection_option.html.erb | 4 ++-- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/app/views/cards/index/_collections_filter.html.erb b/app/views/cards/index/_collections_filter.html.erb index 86c4592ee..b735a29c8 100644 --- a/app/views/cards/index/_collections_filter.html.erb +++ b/app/views/cards/index/_collections_filter.html.erb @@ -5,7 +5,7 @@ <% end %> <% if Current.user.collections.one? %> - <%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center", style: "--hover-size: 0" do %> + <%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center" do %> <%= tag.div class: "btn popup__item min-width flex-item-grow" do %> <%= Current.user.collections.first.name %> GO TO @@ -13,14 +13,14 @@ <% end %> <% elsif Current.user.collections.many? %> <%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center", style: "--hover-size: 0" do %> -
+
+ <%= tag.div class: "btn popup__item min-width flex-item-grow" do %> All collections GO TO @@ -29,7 +29,7 @@ <% Current.user.collections.order(:name).each do |collection| %>