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

Transfer match truncation fix

This commit is contained in:
Zach Gollwitzer 2025-06-20 14:08:46 -04:00
parent ab1c17ea14
commit c003e8c6ed

View file

@ -35,38 +35,42 @@
<div class="truncate"> <div class="truncate">
<div class="space-y-0.5"> <div class="space-y-0.5">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1 min-w-0">
<% if transaction.transfer? %> <div class="truncate flex-shrink">
<%= link_to( <% if transaction.transfer? %>
entry.name, <%= link_to(
transaction.transfer.present? ? transfer_path(transaction.transfer) : entry_path(entry), entry.name,
data: { transaction.transfer.present? ? transfer_path(transaction.transfer) : entry_path(entry),
turbo_frame: "drawer", data: {
turbo_prefetch: false turbo_frame: "drawer",
}, turbo_prefetch: false
class: "hover:underline" },
) %> class: "hover:underline"
<% else %> ) %>
<%= link_to( <% else %>
entry.name, <%= link_to(
entry_path(entry), entry.name,
data: { entry_path(entry),
turbo_frame: "drawer", data: {
turbo_prefetch: false turbo_frame: "drawer",
}, turbo_prefetch: false
class: "hover:underline" },
) %> class: "hover:underline"
<% end %> ) %>
<% end %>
</div>
<% if entry.excluded %> <div class="flex items-center gap-1 flex-shrink-0">
<span class="text-orange-500" title="One-time <%= entry.amount.negative? ? "income" : "expense" %> (excluded from averages)"> <% if entry.excluded %>
<%= icon "asterisk", size: "sm", color: "current" %> <span class="text-orange-500" title="One-time <%= entry.amount.negative? ? "income" : "expense" %> (excluded from averages)">
</span> <%= icon "asterisk", size: "sm", color: "current" %>
<% end %> </span>
<% end %>
<% if transaction.transfer.present? %> <% if transaction.transfer.present? %>
<%= render "transactions/transfer_match", transaction: transaction %> <%= render "transactions/transfer_match", transaction: transaction %>
<% end %> <% end %>
</div>
</div> </div>
<div class="text-secondary text-xs font-normal hidden lg:block"> <div class="text-secondary text-xs font-normal hidden lg:block">