From 70290d1527cea77f3a1895388c3ce842f469704a Mon Sep 17 00:00:00 2001 From: hatz Date: Wed, 21 May 2025 11:48:55 -0500 Subject: [PATCH] Fix backgrounds when balance sheet groups are open --- app/views/pages/dashboard/_balance_sheet.html.erb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erb index a73e6a03..5837e886 100644 --- a/app/views/pages/dashboard/_balance_sheet.html.erb +++ b/app/views/pages/dashboard/_balance_sheet.html.erb @@ -58,10 +58,13 @@ -
- <% classification_group.account_groups.each do |account_group| %> -
- +
+ <% classification_group.account_groups.each_with_index do |account_group, idx| %> +
+ <%= idx == classification_group.account_groups.size - 1 ? "rounded-b-lg" : "" %> + "> +
<%= icon("chevron-right", class: "group-open:rotate-90") %> @@ -93,7 +96,7 @@
<% account_group.accounts.each_with_index do |account, idx| %> -
+
<%= render "accounts/logo", account: account, size: "sm", color: account_group.color %>