From b77455bfc878e4c70f40d306ebe53ecf609a8f59 Mon Sep 17 00:00:00 2001 From: Terry Yiu Date: Tue, 8 Sep 2026 09:46:38 +0300 Subject: [PATCH] Move currency row overflow menu to the right of the amount field Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01QpjMKWGoiT5aJBzhxvXkwp --- .../kotlin/xyz/tyiu/satsprice/ui/PriceScreen.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/shared/src/commonMain/kotlin/xyz/tyiu/satsprice/ui/PriceScreen.kt b/shared/src/commonMain/kotlin/xyz/tyiu/satsprice/ui/PriceScreen.kt index 6d83c62..9aefb5f 100644 --- a/shared/src/commonMain/kotlin/xyz/tyiu/satsprice/ui/PriceScreen.kt +++ b/shared/src/commonMain/kotlin/xyz/tyiu/satsprice/ui/PriceScreen.kt @@ -246,6 +246,14 @@ fun PriceScreen( horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.CenterVertically, ) { + OutlinedTextField( + value = state.fiatAmounts[code].orEmpty(), + onValueChange = { viewModel.onFiatAmountChanged(code, it) }, + label = { Text(code) }, + keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Decimal), + singleLine = true, + modifier = Modifier.weight(1f), + ) CurrencyRowMenu( code = code, canMoveUp = index > 0, @@ -263,14 +271,6 @@ fun PriceScreen( }, onRemove = { viewModel.onFiatCurrencyToggled(code) }, ) - OutlinedTextField( - value = state.fiatAmounts[code].orEmpty(), - onValueChange = { viewModel.onFiatAmountChanged(code, it) }, - label = { Text(code) }, - keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Decimal), - singleLine = true, - modifier = Modifier.weight(1f), - ) } } }