From 3b2d630d992a22c10afd9edc2d626fc82bd8e212 Mon Sep 17 00:00:00 2001 From: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:11:21 +0100 Subject: [PATCH] Fix holdings table on mobile (#1114) * fix: extend width for holdings table in reports * fix: use right cols for header * fix: reduce padding on sections * fix: update holdings table display on dashboard * feat: set max width for holding name * fix: remove fixed width on last column * Update app/views/pages/dashboard/_investment_summary.html.erb Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> * fix: add check on holding.ticker to ensure it's present --------- Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../dashboard/_investment_summary.html.erb | 82 ++++++++++--------- .../reports/_investment_performance.html.erb | 75 ++++++++--------- app/views/reports/index.html.erb | 2 +- 3 files changed, 81 insertions(+), 78 deletions(-) diff --git a/app/views/pages/dashboard/_investment_summary.html.erb b/app/views/pages/dashboard/_investment_summary.html.erb index f10f0d776..c6396e1dd 100644 --- a/app/views/pages/dashboard/_investment_summary.html.erb +++ b/app/views/pages/dashboard/_investment_summary.html.erb @@ -27,50 +27,52 @@ <% holdings = investment_statement.top_holdings(limit: 5) %> <% if holdings.any? %> -
<%= holding.ticker %>
+<%= truncate(holding.name, length: 20) %>
<%= holding.ticker %>
-<%= truncate(holding.name, length: 20) %>
+<%= holding.ticker %>
+<%= truncate(holding.name, length: 25) %>
<%= holding.ticker %>
-<%= truncate(holding.name, length: 25) %>
+