From 347b16ee8b9c350b04f62648e5b2463f270a6471 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 15 Jul 2024 15:34:08 -0400 Subject: [PATCH] Fixes the post button disappeering when the Relay Settings top label is too large --- .../amethyst/ui/actions/relays/AllRelayListView.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/relays/AllRelayListView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/relays/AllRelayListView.kt index a24f599c5..415183e69 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/relays/AllRelayListView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/relays/AllRelayListView.kt @@ -40,6 +40,7 @@ import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.window.Dialog @@ -112,6 +113,8 @@ fun AllRelayListView( Text( text = stringRes(R.string.relay_settings), + modifier = Modifier.weight(1f), + textAlign = TextAlign.Center, style = MaterialTheme.typography.titleLarge, overflow = TextOverflow.Ellipsis, maxLines = 1,