From 77a0cfff41de393228f8d1fc1ffd5cd8dd1b0c6c Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 13 Sep 2024 14:48:00 -0400 Subject: [PATCH 1/3] Fix transaction summary spacing --- app/views/transactions/_summary.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/transactions/_summary.html.erb b/app/views/transactions/_summary.html.erb index 468f5a73..f31eff5e 100644 --- a/app/views/transactions/_summary.html.erb +++ b/app/views/transactions/_summary.html.erb @@ -1,5 +1,5 @@ <%# locals: (totals:) %> -
+

Total transactions

<%= totals[:count] %>

-- 2.53.0 From f1072bf958a887369ed9dff3844e6f9969096bbf Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 13 Sep 2024 14:50:16 -0400 Subject: [PATCH 2/3] Fix search input padding --- app/views/transactions/searches/_form.html.erb | 6 +++--- app/views/transactions/searches/_menu.html.erb | 6 +++--- .../transactions/searches/filters/_account_filter.html.erb | 2 +- .../transactions/searches/filters/_category_filter.html.erb | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/transactions/searches/_form.html.erb b/app/views/transactions/searches/_form.html.erb index 0cfd8a1a..2cbccd63 100644 --- a/app/views/transactions/searches/_form.html.erb +++ b/app/views/transactions/searches/_form.html.erb @@ -5,13 +5,13 @@ data: { controller: "auto-submit-form" } do |form| %>
-
+
+ <%= lucide_icon("search", class: "w-5 h-5 text-gray-500") %> <%= form.text_field :search, placeholder: "Search transactions by name", value: @q[:search], - class: "placeholder:text-sm placeholder:text-gray-500 relative pl-10 w-full border-none rounded-lg focus:outline-none focus:ring-0", + class: "form-field__input placeholder:text-sm placeholder:text-gray-500", "data-auto-submit-form-target": "auto" %> - <%= lucide_icon("search", class: "w-5 h-5 text-gray-500 ml-2 absolute inset-0 transform top-1/2 -translate-y-1/2") %>
diff --git a/app/views/transactions/searches/_menu.html.erb b/app/views/transactions/searches/_menu.html.erb index 7f04a39b..2964ea1d 100644 --- a/app/views/transactions/searches/_menu.html.erb +++ b/app/views/transactions/searches/_menu.html.erb @@ -4,8 +4,8 @@ data-controller="tabs" data-tabs-active-class="bg-gray-25 text-gray-900" data-tabs-default-tab-value="<%= get_default_transaction_search_filter[:key] %>" - class="hidden absolute flex z-10 h-80 w-[540px] top-12 right-0 border border-alpha-black-25 bg-white rounded-lg shadow-xs"> -
+ class="hidden absolute flex z-10 h-80 w-[540px] top-12 right-0 border border-alpha-black-100 bg-white rounded-lg shadow-xs"> +
<% transaction_search_filters.each do |filter| %>