mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 23:14:13 +02:00
Refining the selection size when clicking in an account.
This commit is contained in:
@@ -86,9 +86,7 @@ fun AccountSwitchBottomSheet(
|
|||||||
val current = accountUser.pubkeyNpub() == acc.npub
|
val current = accountUser.pubkeyNpub() == acc.npub
|
||||||
|
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier.fillMaxWidth(),
|
||||||
.fillMaxWidth()
|
|
||||||
.padding(16.dp, 16.dp),
|
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
@@ -98,6 +96,12 @@ fun AccountSwitchBottomSheet(
|
|||||||
accountStateViewModel.switchUser(acc.npub)
|
accountStateViewModel.switchUser(acc.npub)
|
||||||
},
|
},
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
|
) {
|
||||||
|
Row(
|
||||||
|
modifier = Modifier
|
||||||
|
.padding(16.dp, 16.dp)
|
||||||
|
.weight(1f),
|
||||||
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
@@ -158,6 +162,7 @@ fun AccountSwitchBottomSheet(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = { accountStateViewModel.logOff(acc.npub) }
|
onClick = { accountStateViewModel.logOff(acc.npub) }
|
||||||
|
Reference in New Issue
Block a user