diff --git a/app/assets/stylesheets/popup.css b/app/assets/stylesheets/popup.css index b9987e12c..63f55728e 100644 --- a/app/assets/stylesheets/popup.css +++ b/app/assets/stylesheets/popup.css @@ -6,7 +6,7 @@ inline-size: auto; inset: 0 auto auto 50%; - min-inline-size: min(20ch, 90vw); + min-inline-size: min(25ch, 90vw); max-inline-size: min(50ch, 90vw); position: absolute; transform: translateX(-50%); diff --git a/app/views/cards/index/_collections_filter.html.erb b/app/views/cards/index/_collections_filter.html.erb index bd1c77548..3ac3d2605 100644 --- a/app/views/cards/index/_collections_filter.html.erb +++ b/app/views/cards/index/_collections_filter.html.erb @@ -1,9 +1,24 @@ -<%= form_with url: cards_path, method: :get, class: "flex flex-column max-width popup__list", +<%= form_with url: cards_path, method: :get, class: "flex flex-column max-width popup__list full-width", data: { controller: "form" } do |form| %> <% filter.as_params.except(:collection_ids).each do |key, value| %> <%= filter_hidden_field_tag key, value %> <% end %> + <%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center", style: "--hover-size: 0" do %> +
+ > + + + See everything in all collections + + <%= icon_tag "check", size: 18, class: "checked" %> +
+ <%= tag.div class: "btn popup__item min-width flex-item-grow" do %> + All collections + <% end %> + + <% end %> + <% Current.user.collections.order(:name).each do |collection| %>