From d455537392f58e392211e2e99e33e9e2fd21c339 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 30 Jun 2025 12:56:56 -0500 Subject: [PATCH] Remove home button --- app/assets/stylesheets/header.css | 9 ++++++++ app/views/cards/index.html.erb | 21 +++++-------------- app/views/cards/index/_header.html.erb | 4 ---- .../index/engagement/_considering.html.erb | 9 ++++++++ app/views/filters/_settings.html.erb | 4 ++-- 5 files changed, 25 insertions(+), 22 deletions(-) diff --git a/app/assets/stylesheets/header.css b/app/assets/stylesheets/header.css index 29cb298b4..0fb0ce6fe 100644 --- a/app/assets/stylesheets/header.css +++ b/app/assets/stylesheets/header.css @@ -33,4 +33,13 @@ margin: 0 auto; text-align: center; } + + .header__title--actions { + --btn-size: 2rem; + --btn-icon-size: 1rem; + + display: flex; + align-items: center; + gap: 0.33ch; + } } diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 0f302d75f..9c0cb7bac 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -7,21 +7,8 @@ <% end %>
-
- <% if collection = @filter.single_collection || Current.user.collections.first %> - <%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link txt-small", form_class: "full-width" do %> - <%= icon_tag "add" %> - Add a card - <% end %> - <% end %> -
- -

- <%= filter_title @filter %> -

- -
- <%= render "filters/settings", filter: @filter %> +

+ <%= filter_title @filter %> <% if collection = @filter.single_collection %> <%= access_involvement_advance_button collection, Current.user %> @@ -30,9 +17,11 @@ Settings for <%= collection.name %> <% end %> <% end %> -

+
+<%= render "filters/settings", filter: @filter %> + <%= tag.div data: { controller: "drag-and-drop", drag_and_drop_dragged_item_class: "drag-and-drop__dragged-item", diff --git a/app/views/cards/index/_header.html.erb b/app/views/cards/index/_header.html.erb index b4c93cd71..a9e0a9229 100644 --- a/app/views/cards/index/_header.html.erb +++ b/app/views/cards/index/_header.html.erb @@ -1,7 +1,4 @@ diff --git a/app/views/cards/index/engagement/_considering.html.erb b/app/views/cards/index/engagement/_considering.html.erb index fb4a70a25..311303b68 100644 --- a/app/views/cards/index/engagement/_considering.html.erb +++ b/app/views/cards/index/engagement/_considering.html.erb @@ -3,6 +3,15 @@ Considering + <% if collection = filter.single_collection || Current.user.collections.first %> + <%= button_to collection_cards_path(collection), method: :post, class: "card card--new-card-button btn", form_class: "full-width" do %> +
+ <%= icon_tag "add" %> + Add a new card +
+ <% end %> + <% end %> + <% if page.used? %> <%= render partial: "cards/display/preview", collection: page.records, as: :card, locals: { draggable: true }, cached: true %> diff --git a/app/views/filters/_settings.html.erb b/app/views/filters/_settings.html.erb index ecc39e45d..d1b582631 100644 --- a/app/views/filters/_settings.html.erb +++ b/app/views/filters/_settings.html.erb @@ -1,4 +1,4 @@ -
+
+