From c091a7f28eff57eb8aa29fd3e6b0e78ab0d5a030 Mon Sep 17 00:00:00 2001 From: bjornbergenheim <29535152+bjornbergenheim@users.noreply.github.com> Date: Tue, 8 Sep 2026 17:07:33 +0200 Subject: [PATCH] fix(ui): clip the flexible list cell on the rows #2003 missed (#2284) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #2003 gave TransactionInboxCard overflow-hidden because its shrink-0 row markers cannot truncate: past the width that fits them the cell painted over the Belopp column instead of clipping. Six other rows carry the same `max-w-0 w-full` flexible cell with shrink-0 chips inside and never got the guard, so they still overlap the neighbouring column. Reproduced on /transactions with a Skatteverket row whose booking suggestion is long ("Bokförs mot 2731 Avräkning lagstadgade sociala avgifter"): the text runs straight through the amount. Seen in both Chrome and Firefox, so this is not engine specific; Firefox only reaches it sooner, because it ignores the max-w-0 cap on a td when sizing columns (CSS 2.1 10.4 leaves max-width on table cells undefined). Rows fixed: the skattekonto inbox row, both rows in the transaction history list, the verifikat list, the chart of accounts, the customer list and the salary run list. ChartOfAccountsManager's second flexible cell is left alone: its only child truncates, so it has nothing that can overflow. Signed-off-by: Bjorn Bergenheim <29535152+bjornbergenheim@users.noreply.github.com> Co-authored-by: Claude Opus 5 --- app/(dashboard)/customers/page.tsx | 4 +++- app/(dashboard)/salary/page.tsx | 4 +++- components/bookkeeping/ChartOfAccountsManager.tsx | 4 +++- components/bookkeeping/JournalEntryList.tsx | 4 +++- components/transactions/SkattekontoInboxCard.tsx | 6 +++++- components/transactions/TransactionHistoryList.tsx | 7 +++++-- 6 files changed, 22 insertions(+), 7 deletions(-) diff --git a/app/(dashboard)/customers/page.tsx b/app/(dashboard)/customers/page.tsx index deeafdfe..0691c5e6 100644 --- a/app/(dashboard)/customers/page.tsx +++ b/app/(dashboard)/customers/page.tsx @@ -352,7 +352,9 @@ function CustomersPageInner() { className="group cursor-pointer transition-colors duration-150 hover:bg-secondary/35" onClick={() => router.push(`/customers/${customer.id}`)} > - + {/* overflow-hidden: see #2003, the shrink-0 verified + badge cannot truncate. */} + - + {/* overflow-hidden: see #2003, nothing in this cell + truncates so it must clip. */} + {run.status === 'booked' ? ( {t('status_booked')} diff --git a/components/bookkeeping/ChartOfAccountsManager.tsx b/components/bookkeeping/ChartOfAccountsManager.tsx index 81a79150..6a75e908 100644 --- a/components/bookkeeping/ChartOfAccountsManager.tsx +++ b/components/bookkeeping/ChartOfAccountsManager.tsx @@ -748,7 +748,9 @@ export default function ChartOfAccountsManager() { - + {/* overflow-hidden: see #2003, the shrink-0 + markers cannot truncate. */} + {account.account_name} {account.is_system_account && ( diff --git a/components/bookkeeping/JournalEntryList.tsx b/components/bookkeeping/JournalEntryList.tsx index d64f5ae8..551eb52e 100644 --- a/components/bookkeeping/JournalEntryList.tsx +++ b/components/bookkeeping/JournalEntryList.tsx @@ -1606,7 +1606,9 @@ export default function JournalEntryList({ {formatDate(entry.entry_date)} - + {/* overflow-hidden: see #2003, the shrink-0 status + chips cannot truncate and would paint over Belopp. */} + {entry.description} {entry.out_of_period && ( diff --git a/components/transactions/SkattekontoInboxCard.tsx b/components/transactions/SkattekontoInboxCard.tsx index 4db34745..c52168ed 100644 --- a/components/transactions/SkattekontoInboxCard.tsx +++ b/components/transactions/SkattekontoInboxCard.tsx @@ -102,7 +102,11 @@ export default function SkattekontoInboxCard({ {formatDate(row.transaktionsdatum)} - + {/* overflow-hidden: the shrink-0 chips below don't truncate, so on a + viewport too narrow for them the cell must clip instead of painting + over the Belopp column. Same guard #2003 put on TransactionInboxCard; + this row and the ones below never got it. */} + {row.transaktionstext} diff --git a/components/transactions/TransactionHistoryList.tsx b/components/transactions/TransactionHistoryList.tsx index d221bbdd..9b7c9e39 100644 --- a/components/transactions/TransactionHistoryList.tsx +++ b/components/transactions/TransactionHistoryList.tsx @@ -318,7 +318,9 @@ function BankHistoryRow({ {formatDate(transaction.date)} - + {/* overflow-hidden: see #2003, the shrink-0 markers below cannot + truncate and would paint over Belopp. */} + {transaction.description} {formatDate(row.transaktionsdatum)} - + {/* overflow-hidden: see the bank row above. */} + {row.transaktionstext}