android/ui: change click target for exit node picker

This makes sure only the relevant UI control flashes on click

Updates #cleanup

Signed-off-by: Percy Wegmann <percy@tailscale.com>
pull/248/head
Percy Wegmann 8 months ago committed by Percy Wegmann
parent fb5635b8a5
commit cf6a203f7a

@ -146,12 +146,12 @@ fun ExitNodeStatus(navAction: () -> Unit, viewModel: MainViewModel) {
Box( Box(
modifier = modifier =
Modifier.clickable { navAction() } Modifier.padding(horizontal = 16.dp)
.padding(horizontal = 16.dp)
.clip(shape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 10.dp)) .clip(shape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 10.dp))
.background(MaterialTheme.colorScheme.background) .background(MaterialTheme.colorScheme.background)
.fillMaxWidth()) { .fillMaxWidth()) {
ListItem( ListItem(
modifier = Modifier.clickable { navAction() },
headlineContent = { headlineContent = {
Text( Text(
stringResource(R.string.exit_node), stringResource(R.string.exit_node),

Loading…
Cancel
Save