Refining the selection size when clicking in an account.

This commit is contained in:
Vitor Pamplona
2023-03-13 10:20:48 -04:00
parent 9fc1fa9f6c
commit cd5e0187e8

View File

@@ -86,9 +86,7 @@ fun AccountSwitchBottomSheet(
val current = accountUser.pubkeyNpub() == acc.npub
Row(
modifier = Modifier
.fillMaxWidth()
.padding(16.dp, 16.dp),
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically
) {
Row(
@@ -98,6 +96,12 @@ fun AccountSwitchBottomSheet(
accountStateViewModel.switchUser(acc.npub)
},
verticalAlignment = Alignment.CenterVertically
) {
Row(
modifier = Modifier
.padding(16.dp, 16.dp)
.weight(1f),
verticalAlignment = Alignment.CenterVertically
) {
Box(
modifier = Modifier
@@ -158,6 +162,7 @@ fun AccountSwitchBottomSheet(
}
}
}
}
IconButton(
onClick = { accountStateViewModel.logOff(acc.npub) }