From cf097ad8a974a4538e483cd70b43e4ee424e60a3 Mon Sep 17 00:00:00 2001 From: Rafael Date: Thu, 7 Nov 2024 17:20:55 +0600 Subject: [PATCH] Fix text overflow for signal badge in Watchlist --- .../bankwallet/ui/compose/components/Badge.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/Badge.kt b/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/Badge.kt index 2c15791e59..2063583021 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/Badge.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/Badge.kt @@ -13,6 +13,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import io.horizontalsystems.bankwallet.ui.compose.ComposeAppTheme @@ -71,6 +72,8 @@ fun BadgeText( text = text, color = textColor, style = ComposeAppTheme.typography.microSB, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) } }