1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Use shared ruler for imports and balance sheet

This commit is contained in:
hatz 2025-05-14 07:48:04 -05:00
parent 3ec8649166
commit 2f11615bec
No known key found for this signature in database
3 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,4 @@
<div id="<%= dom_id import %>" class="flex items-center justify-between mx-4 py-4 border-b last:border-b-0 border-alpha-black-50"> <div id="<%= dom_id import %>" class="flex items-center justify-between mx-4 py-4">
<div class="flex items-center gap-2 mb-1"> <div class="flex items-center gap-2 mb-1">
<%= link_to import_path(import), class: "text-sm text-primary hover:underline" do %> <%= link_to import_path(import), class: "text-sm text-primary hover:underline" do %>

View file

@ -18,7 +18,7 @@
<h2 class="uppercase px-4 py-2 text-secondary text-xs"><%= t(".imports") %> · <%= @imports.size %></h2> <h2 class="uppercase px-4 py-2 text-secondary text-xs"><%= t(".imports") %> · <%= @imports.size %></h2>
<div class="border border-alpha-black-100 rounded-lg bg-container shadow-xs"> <div class="border border-alpha-black-100 rounded-lg bg-container shadow-xs">
<%= render partial: "imports/import", collection: @imports.ordered %> <%= render partial: "imports/import", collection: @imports.ordered, spacer_template: "shared/ruler" %>
</div> </div>
</div> </div>
<% end %> <% end %>

View file

@ -88,9 +88,7 @@
</div> </div>
<% if idx < account_group.accounts.size - 1 %> <% if idx < account_group.accounts.size - 1 %>
<div class="pl-[84px] pr-40"> <%= render "shared/ruler", classes: "ml-12 mr-4" %>
<div class="w-full border-subdued border-b"></div>
</div>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>