diff --git a/app/views/account/transactions/_transaction.html.erb b/app/views/account/transactions/_transaction.html.erb index a87c5bdf8f8..ae288d56dca 100644 --- a/app/views/account/transactions/_transaction.html.erb +++ b/app/views/account/transactions/_transaction.html.erb @@ -47,7 +47,7 @@ <% unless show_balance %> - <%= tag.div class: "col-span-2" do %> + <%= tag.div class: "col-span-2 overflow-hidden truncate" do %> <% if entry.new_record? %> <%= tag.p account.name %> <% else %> diff --git a/app/views/accounts/_account_list.html.erb b/app/views/accounts/_account_list.html.erb index d86fe8d3847..28103fae8eb 100644 --- a/app/views/accounts/_account_list.html.erb +++ b/app/views/accounts/_account_list.html.erb @@ -33,8 +33,8 @@ <% account_trend = account_value_node.series.trend %> <%= link_to account, class: "flex items-center w-full gap-3 px-3 py-2 mb-1 hover:bg-gray-100 rounded-[10px]" do %> <%= render "accounts/logo", account: account, size: "sm" %> -
-

<%= account_value_node.name %>

+
+

<%= account_value_node.name %>

<% if account.subtype %>

<%= account.subtype&.humanize %>

<% end %> diff --git a/app/views/accounts/show/_header.html.erb b/app/views/accounts/show/_header.html.erb index c41f2d482c4..de5955b0f1c 100644 --- a/app/views/accounts/show/_header.html.erb +++ b/app/views/accounts/show/_header.html.erb @@ -7,11 +7,11 @@ <% if content.present? %> <%= content %> <% else %> -
+
<%= render "accounts/logo", account: account %> -
-

<%= title || account.name %>

+
+

<%= title || account.name %>

<% if subtitle.present? %>

<%= subtitle %>

<% end %> diff --git a/app/views/pages/_account_group_disclosure.erb b/app/views/pages/_account_group_disclosure.erb index e3e1128dc8a..bd51df0e73d 100644 --- a/app/views/pages/_account_group_disclosure.erb +++ b/app/views/pages/_account_group_disclosure.erb @@ -24,9 +24,9 @@
<% accountable_group.children.map do |account_value_node| %>
-
+
<%= render "accounts/logo", account: account_value_node.original, size: "sm" %> -
+

<%= account_value_node.name %>

diff --git a/app/views/transactions/_form.html.erb b/app/views/transactions/_form.html.erb index 284ed4da5b7..e8cd3ea1a89 100644 --- a/app/views/transactions/_form.html.erb +++ b/app/views/transactions/_form.html.erb @@ -10,9 +10,9 @@ -
+
<%= f.text_field :name, label: t(".description"), placeholder: t(".description_placeholder"), required: true %> - <%= f.collection_select :account_id, Current.family.accounts.alphabetically, :id, :name, { prompt: t(".account_prompt"), label: t(".account") }, required: true %> + <%= f.collection_select :account_id, Current.family.accounts.alphabetically, :id, :name, { prompt: t(".account_prompt"), label: t(".account") }, required: true, class: "form-field__input text-ellipsis" %> <%= f.money_field :amount, label: t(".amount"), required: true %> <%= f.hidden_field :entryable_type, value: "Account::Transaction" %> <%= f.fields_for :entryable do |ef| %>