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:
parent
637d630388
commit
4b50acff2b
7 changed files with 27 additions and 44 deletions
|
@ -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? %>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue