mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 14:54:49 +00:00
* Improvements - Fix button visibility in reports on light theme - Unify logic for provider syncs - Add default option is to skip accounts linking ( no op default ) * Stability fixes and UX improvements * FIX add unlinking when deleting lunch flow connection as well * Wrap updates in transaction * Some more improvements * FIX proper provider setup check * Make provider section collapsible * Fix balance calculation * Restore focus ring * Use browser default focus * Fix lunch flow balance for credit cards
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
<%# locals: (title:, subtitle: nil, content:, collapsible: false, open: true) %>
|
|
<% if collapsible %>
|
|
<details <%= "open" if open %> class="group bg-container shadow-border-xs rounded-xl p-4">
|
|
<summary class="flex items-center justify-between gap-2 cursor-pointer rounded-lg list-none [&::-webkit-details-marker]:hidden">
|
|
<div class="flex items-center gap-2">
|
|
<%= icon "chevron-right", class: "text-secondary group-open:transform group-open:rotate-90 transition-transform" %>
|
|
<div>
|
|
<h2 class="text-lg font-medium text-primary"><%= title %></h2>
|
|
<% if subtitle.present? %>
|
|
<p class="text-secondary text-sm"><%= subtitle %></p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</summary>
|
|
<div class="space-y-4 mt-4">
|
|
<%= content %>
|
|
</div>
|
|
</details>
|
|
<% else %>
|
|
<section class="bg-container shadow-border-xs rounded-xl p-4 space-y-4">
|
|
<div>
|
|
<h2 class="text-lg font-medium text-primary"><%= title %></h2>
|
|
<% if subtitle.present? %>
|
|
<p class="text-secondary text-sm mt-1"><%= subtitle %></p>
|
|
<% end %>
|
|
</div>
|
|
<div class="space-y-4">
|
|
<%= content %>
|
|
</div>
|
|
</section>
|
|
<% end %>
|