Skip to content

Commit

Permalink
Set minWidth on <input /> to allow it to shrink. (#3168)
Browse files Browse the repository at this point in the history
* Set minWidth on <input /> to allow it to shrink.
Fixes #3126

* fix formatting

* add release-notes markdown
  • Loading branch information
wnklmnn committed Jul 31, 2024
1 parent 2799dbe commit 8de0f6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ const ChildTransactionEdit = forwardRef(
value={amountToInteger(transaction.amount)}
zeroSign={amountSign}
style={{ marginRight: 8 }}
inputStyle={{ ...styles.smallText, textAlign: 'right' }}
inputStyle={{
...styles.smallText,
textAlign: 'right',
minWidth: 0,
}}
onFocus={() =>
onRequestActiveEdit(getFieldName(transaction.id, 'amount'))
}
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/3168.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [wnklmnn]
---

Fix inputfields overflowing while adding split transactions

0 comments on commit 8de0f6a

Please sign in to comment.