Skip to content

A local-first personal finance app

Truncate multiple payee names with ellipsis to prevent layout overflow in the payee column. (#5418)

ShayanAraghi1e05b169c8c5
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
index 0f522a4fde..019bccef5e 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
@@ -527,7 +527,7 @@ function PayeeCell({
<CellButton
bare
style={{
- alignSelf: 'flex-start',
+ alignSelf: 'stretch',
borderRadius: 4,
border: '1px solid transparent', // so it doesn't shift on hover
':hover': isPreview
@@ -575,6 +575,7 @@ function PayeeCell({
width: 14,
height: 14,
marginRight: 5,
+ flexShrink: 0,
}}
/>
<Text
@@ -582,6 +583,10 @@ function PayeeCell({
fontStyle: 'italic',
fontWeight: 300,
userSelect: 'none',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ minWidth: 0,
borderBottom: importedPayee
? `1px dashed ${theme.pageTextSubdued}`
: 'none',
diff --git a/upcoming-release-notes/5418.md b/upcoming-release-notes/5418.md
new file mode 100644
index 0000000000..1506d79aeb
--- /dev/null
+++ b/upcoming-release-notes/5418.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [ShayanAraghi]
+---
+
+Truncate multiple payee names with ellipsis to prevent layout overflow in the payee column.