diff --git a/apps/flipcash/features/balance/src/main/kotlin/com/flipcash/app/balance/internal/WalletScreenContent.kt b/apps/flipcash/features/balance/src/main/kotlin/com/flipcash/app/balance/internal/WalletScreenContent.kt index 504a59d3a..596e624e0 100644 --- a/apps/flipcash/features/balance/src/main/kotlin/com/flipcash/app/balance/internal/WalletScreenContent.kt +++ b/apps/flipcash/features/balance/src/main/kotlin/com/flipcash/app/balance/internal/WalletScreenContent.kt @@ -26,6 +26,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.vector.rememberVectorPainter import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.flipcash.app.core.AppRoute import com.flipcash.app.core.ui.TokenCardStack @@ -73,13 +74,14 @@ internal fun WalletScreenContent( state = listState, modifier = Modifier.fillMaxSize(), contentPadding = PaddingValues( + top = CodeTheme.dimens.inset, start = CodeTheme.dimens.inset, end = CodeTheme.dimens.inset, - bottom = LocalTabBarPadding.current.calculateBottomPadding(), + bottom = LocalTabBarPadding.current.calculateBottomPadding() + CodeTheme.dimens.grid.x12, ) ) { item { - Spacer(Modifier.height(CodeTheme.dimens.grid.x20)) + Spacer(Modifier.height(CodeTheme.dimens.grid.x15)) } item { diff --git a/apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/ui/SelectTokenViewModel.kt b/apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/ui/SelectTokenViewModel.kt index 1472e50f1..f55f61d36 100644 --- a/apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/ui/SelectTokenViewModel.kt +++ b/apps/flipcash/shared/tokens/src/main/kotlin/com/flipcash/app/tokens/ui/SelectTokenViewModel.kt @@ -163,8 +163,11 @@ class SelectTokenViewModel @Inject constructor( ) } .sortedWith( - compareByDescending { it.balance.nativeAmount.rounded() } - .thenBy { it.token.address.base58() } + // Match iOS (Session.balances): descending by exact value, then + // alphabetical by name (not by mint address, which reordered equal-value + // tokens like LaunchIt/Teddies differently than iOS). + compareByDescending { it.balance.nativeAmount } + .thenBy { it.token.name } ) .filter { val hasBalance = it.balance.nativeAmount.hasDisplayableValue