From 599f58fa9796218cb6ff4d09af9c0e66525a9fb7 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 9 Apr 2026 13:34:59 +0200 Subject: [PATCH] General Journal: inline badge+name, robust column widths - Moved account type badge into the Description/Account cell, inline with the account name. Badge and name are now in the same column as the transaction description, creating natural visual alignment. - Widened balance column to 120px, added whiteSpace: nowrap + overflow: hidden on all numeric columns to prevent layout breakage with large numbers. - Trimmed Tx# column to 55px. Made-with: Cursor --- .../src/pages/inspect/GeneralJournalTab.tsx | 51 ++++++++++--------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/frontend/src/pages/inspect/GeneralJournalTab.tsx b/frontend/src/pages/inspect/GeneralJournalTab.tsx index c047836f..2789a9d2 100644 --- a/frontend/src/pages/inspect/GeneralJournalTab.tsx +++ b/frontend/src/pages/inspect/GeneralJournalTab.tsx @@ -91,12 +91,12 @@ export default function GeneralJournalTab() { - + - - - + + + @@ -143,25 +143,26 @@ export default function GeneralJournalTab() { ...tx.rows.map(row => ( - - - - - - - {row.accountName} - - + + + + + + + {row.accountName} + + + {row.foreignCurrencyCode && ( @@ -169,12 +170,14 @@ export default function GeneralJournalTab() { 0 ? 'text.primary' : 'text.disabled', }}> {row.debitCents > 0 ? formatCents(row.debitCents) : ''} 0 ? 'error.main' : 'text.disabled', }}> {row.creditCents > 0 ? formatCents(row.creditCents) : ''} @@ -182,6 +185,8 @@ export default function GeneralJournalTab() { {formatCents(row.balanceCents)}