Skip to content

A local-first personal finance app

Fix split transaction popover wrapping (#7814)

Tonchainee82a160260b
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
index 2e80273952..edbe75b27e 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
@@ -1384,10 +1384,10 @@ const Transaction = memo(function Transaction({
isOpen
isNonModal
style={{
- maxWidth: 500,
+ width: 'max-content',
+ maxWidth: 'none',
minWidth: 375,
padding: 5,
- maxHeight: '38px !important',
}}
shouldFlip={false}
placement="bottom end"
@@ -1981,6 +1981,7 @@ function TransactionError({
flexDirection: 'row',
alignItems: 'center',
padding: '0 5px',
+ gap: 5,
...style,
}}
data-testid="transaction-error"
@@ -1996,7 +1997,6 @@ function TransactionError({
<View style={{ flex: 1 }} />
<Button
variant="normal"
- style={{ marginLeft: 15 }}
onPress={onDistributeRemainder}
data-testid="distribute-split-button"
>
@@ -2004,7 +2004,7 @@ function TransactionError({
</Button>
<Button
variant="primary"
- style={{ marginLeft: 10, padding: '4px 10px' }}
+ style={{ padding: '4px 10px' }}
onPress={onAddSplit}
data-testid="add-split-button"
>
diff --git a/upcoming-release-notes/7814.md b/upcoming-release-notes/7814.md
new file mode 100644
index 0000000000..411e2f4d86
--- /dev/null
+++ b/upcoming-release-notes/7814.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [impetus82]
+---
+
+Fix split transaction popover layout so translated buttons remain visible.