1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-03 04:25:21 +02:00

Improve account internal linking and redirect behavior (#864)

* Fix transaction row link and overflow

* Allow user to access imports from account page

* Clean up accounts controller, add link to account page from settings

* Add link to accounts management from accounts summary page

* Cleanup styles
This commit is contained in:
Zach Gollwitzer 2024-06-11 18:47:38 -04:00 committed by GitHub
parent 8372e26864
commit c5704ffd45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 86 additions and 62 deletions

View file

@ -1,9 +1,9 @@
<%= content_tag :div, class: ["flex items-center gap-2"] do %>
<div class="w-8 h-8 flex items-center justify-center rounded-full bg-gray-600/5 text-gray-600">
<div class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gray-600/5 text-gray-600">
<%= transaction.name[0].upcase %>
</div>
<div class="text-gray-900 truncate">
<div class="truncate text-gray-900">
<% if transaction.new_record? %>
<%= content_tag :p, transaction.name %>
<% else %>

View file

@ -4,7 +4,9 @@
class: "maybe-checkbox maybe-checkbox--light",
data: { id: transaction.id, "bulk-select-target": "row", action: "bulk-select#toggleRowSelection" } %>
<%= render "transactions/name", transaction: transaction %>
<div class="max-w-full pr-10">
<%= render "transactions/name", transaction: transaction %>
</div>
</div>
<div class="col-span-3">
@ -13,6 +15,7 @@
<%= link_to transaction.account.name,
account_path(transaction.account),
data: { turbo_frame: "_top" },
class: ["col-span-3 hover:underline"] %>
<div class="col-span-2 ml-auto">