fix: Messages UI Tweaks (#1856)

This commit is contained in:
James Rich
2025-05-15 13:09:46 -05:00
committed by GitHub
parent fc38a1a441
commit d5a5efdcf4
3 changed files with 4 additions and 3 deletions

View File

@@ -216,7 +216,6 @@ fun NavDestination.isNodeDetailRoute(): Boolean {
fun NavDestination.showLongNameTitle(): Boolean {
return !this.isTopLevel() && (
this.hasRoute<Route.Messages>() ||
this.hasRoute<Route.RadioConfig>() ||
this.hasRoute<Route.NodeDetail>() ||
this.isConfigRoute() ||

View File

@@ -166,6 +166,9 @@ private fun MainAppBar(
val canNavigateBack = navController.previousBackStackEntry != null
val isTopLevelRoute = currentDestination?.isTopLevel() == true
val navigateUp: () -> Unit = navController::navigateUp
if (currentDestination?.hasRoute<Route.Messages>() == true) {
return
}
TopAppBar(
title = {
when {

View File

@@ -387,8 +387,7 @@ private fun TextInput(
message.value = it
}
},
modifier = Modifier
.weight(1f)
modifier = Modifier.fillMaxWidth()
.onFocusEvent { isFocused = it.isFocused },
enabled = enabled,
placeholder = { Text(stringResource(id = R.string.send_text)) },