From 85fb6dcc83da1f8949fda2763d9d0db4bd638fae Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 3 Sep 2025 16:35:10 -0400 Subject: [PATCH] Avoids breaking line in the relay info top nav bar title --- .../ui/screen/loggedIn/relays/RelayInformationScreen.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/RelayInformationScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/RelayInformationScreen.kt index 708e6c4db5..9746b5a665 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/RelayInformationScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/relays/RelayInformationScreen.kt @@ -47,6 +47,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.vitorpamplona.amethyst.R @@ -108,7 +109,11 @@ fun RelayInformationScreen( TopAppBar( actions = {}, title = { - Text(relay.displayUrl()) + Text( + relay.displayUrl(), + maxLines = 1, + overflow = TextOverflow.Ellipsis, + ) }, navigationIcon = { Row {