From ae7c1fee84c9fb4cc88ba754b143aa985f61517b Mon Sep 17 00:00:00 2001 From: Lajos Koszti Date: Wed, 13 Dec 2023 19:18:42 +0100 Subject: [PATCH] fix currency field display On a Nothing Phone 1, on the Add transaction screen the currency were not visible because the left and right paddings added too much empty space to the text field and it just scrolled out from the view. Removed the the padding from the currency field as the currency is already aligend to the center. The padding is not needed, the spacing will be evenly distributed before and after the text. --- app/src/main/java/be/chvp/nanoledger/ui/add/AddActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/be/chvp/nanoledger/ui/add/AddActivity.kt b/app/src/main/java/be/chvp/nanoledger/ui/add/AddActivity.kt index 7041a22..05c78d7 100644 --- a/app/src/main/java/be/chvp/nanoledger/ui/add/AddActivity.kt +++ b/app/src/main/java/be/chvp/nanoledger/ui/add/AddActivity.kt @@ -371,7 +371,7 @@ fun PostingRow( modifier = Modifier.weight(0.57f).padding(start = 4.dp, end = 2.dp), ) if (currencyBeforeAmount ?: true) { - CurrencyField(index, posting, Modifier.weight(0.18f).padding(horizontal = 2.dp)) + CurrencyField(index, posting, Modifier.weight(0.18f)) AmountField( index, posting, @@ -385,7 +385,7 @@ fun PostingRow( firstEmptyAmount, Modifier.weight(0.25f).padding(horizontal = 2.dp), ) - CurrencyField(index, posting, Modifier.weight(0.18f).padding(start = 2.dp, end = 4.dp)) + CurrencyField(index, posting, Modifier.weight(0.18f)) } } }