mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Transfer match truncation fix
This commit is contained in:
parent
ab1c17ea14
commit
c003e8c6ed
1 changed files with 34 additions and 30 deletions
|
@ -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">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue