1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 23:45:21 +02:00

Replace sync spinners with pulse animation (#2413)

* Replace sync spinners with pulse animation

* Remove dev code
This commit is contained in:
Zach Gollwitzer 2025-06-25 16:51:30 -04:00 committed by GitHub
parent 637d630388
commit 4b50acff2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 44 deletions

View file

@ -5,7 +5,7 @@
<div class="bg-container shadow-border-xs rounded-xl space-y-4 p-4">
<div class="flex items-center gap-2">
<h2 class="text-lg font-medium inline-flex items-center gap-1.5">
<span>
<span class="<%= "animate-pulse" if classification_group.syncing? %>">
<%= classification_group.name %>
</span>
@ -14,10 +14,6 @@
<span class="text-secondary font-medium text-lg"><%= classification_group.total_money.format(precision: 0) %></span>
<% end %>
</h2>
<% if classification_group.syncing? %>
<%= render partial: "shared/sync_indicator", locals: { size: "sm" } %>
<% end %>
</div>
<% if classification_group.account_groups.any? %>

View file

@ -7,13 +7,9 @@
<div class="space-y-2">
<div class="flex items-center gap-2">
<p class="text-sm text-secondary font-medium"><%= t(".title") %></p>
<% if balance_sheet.syncing? %>
<%= render partial: "shared/sync_indicator", locals: { size: "sm" } %>
<% end %>
</div>
<p class="text-primary -space-x-0.5 text-3xl font-medium">
<p class="text-primary -space-x-0.5 text-3xl font-medium <%= "animate-pulse" if balance_sheet.syncing? %>">
<%= series.trend.current.format %>
</p>