diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/WalletScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/WalletScreen.kt index 8236a93f37..a3b37494d8 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/WalletScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/wallet/WalletScreen.kt @@ -363,6 +363,22 @@ private fun WalletCard( horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically, ) { + // Drag handle leads the row — same convention as the + // relay reorder list — so a center-aligned icon doesn't + // land between the balance amount and its "sats" label. + if (dragState != null) { + Icon( + MaterialSymbols.DragIndicator, + contentDescription = stringRes(R.string.wallet_reorder), + modifier = + Modifier + .size(24.dp) + .relayDragHandle(index, dragState), + tint = MaterialTheme.colorScheme.onSurfaceVariant, + ) + Spacer(modifier = Modifier.width(8.dp)) + } + Column(modifier = Modifier.weight(1f)) { Row(verticalAlignment = Alignment.CenterVertically) { Text( @@ -389,20 +405,6 @@ private fun WalletCard( } } - // Drag handle for reordering - if (dragState != null) { - Icon( - MaterialSymbols.DragIndicator, - contentDescription = stringRes(R.string.wallet_reorder), - modifier = - Modifier - .size(24.dp) - .relayDragHandle(index, dragState), - tint = MaterialTheme.colorScheme.onSurfaceVariant, - ) - Spacer(modifier = Modifier.width(8.dp)) - } - // Balance if (walletInfo.isLoading && walletInfo.balanceSats == null) { CircularProgressIndicator(modifier = Modifier.size(24.dp))