From ede97572e3f752295ceb17d42c2758d40c282893 Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 6 Aug 2025 12:39:16 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../walletconnect/connections/ui/InternalComponents.kt | 2 ++ .../walletconnect/connections/ui/WcConnectionsContent.kt | 3 +++ .../connections/ui/preview/WcConnectionsPreviewData.kt | 2 +- .../ui/send/WcSendTransactionModalBottomSheet.kt | 6 +++--- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/InternalComponents.kt b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/InternalComponents.kt index 3150cbc5f6..0096e3ef3c 100644 --- a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/InternalComponents.kt +++ b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/InternalComponents.kt @@ -62,6 +62,8 @@ internal fun WcAppInfoItem( text = title, color = TangemTheme.colors.text.primary1, style = TangemTheme.typography.h3, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) if (verifiedDAppState is VerifiedDAppState.Verified) { Icon( diff --git a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/WcConnectionsContent.kt b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/WcConnectionsContent.kt index acceb4fc2d..452502ee96 100644 --- a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/WcConnectionsContent.kt +++ b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/WcConnectionsContent.kt @@ -213,9 +213,12 @@ private fun AppInfoItem(appInfo: WcConnectedAppInfo, modifier: Modifier = Modifi verticalAlignment = Alignment.CenterVertically, ) { Text( + modifier = Modifier.weight(1f, fill = false), text = appInfo.name, color = TangemTheme.colors.text.primary1, style = TangemTheme.typography.subtitle2, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) if (appInfo.verifiedState is VerifiedDAppState.Verified) { Icon( diff --git a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/preview/WcConnectionsPreviewData.kt b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/preview/WcConnectionsPreviewData.kt index 62530a542a..b478dee7cd 100644 --- a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/preview/WcConnectionsPreviewData.kt +++ b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/connections/ui/preview/WcConnectionsPreviewData.kt @@ -41,7 +41,7 @@ internal object WcConnectionsPreviewData { walletName = "Bitcoin", connectedApps = persistentListOf( WcConnectedAppInfo( - name = "React app", + name = "React app React app React app React app React app", iconUrl = "$BASE_URL/LiteCoin.png", subtitle = "https://react-app.walletconnect.com/", verifiedState = VerifiedDAppState.Verified {}, diff --git a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/transaction/ui/send/WcSendTransactionModalBottomSheet.kt b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/transaction/ui/send/WcSendTransactionModalBottomSheet.kt index 0a0a1f1eac..cf5f3fee9f 100644 --- a/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/transaction/ui/send/WcSendTransactionModalBottomSheet.kt +++ b/features/walletconnect/impl/src/main/kotlin/com/tangem/features/walletconnect/transaction/ui/send/WcSendTransactionModalBottomSheet.kt @@ -185,9 +185,9 @@ private class WcSendTransactionStateProvider : CollectionPreviewParameterProvide onDismiss = {}, onSend = {}, appInfo = WcTransactionAppInfoContentUM( - appName = "React App", + appName = "React App React App ReactApp ReactApp ReactApp", appIcon = "", - verifiedState = VerifiedDAppState.Verified {}, + verifiedState = VerifiedDAppState.Unknown, appSubtitle = "react-app.walletconnect.com", ), estimatedWalletChanges = WcSendReceiveTransactionCheckResultsUM( @@ -225,7 +225,7 @@ private class WcSendTransactionStateProvider : CollectionPreviewParameterProvide onDismiss = {}, onSend = {}, appInfo = WcTransactionAppInfoContentUM( - appName = "React App", + appName = "React App React App React App React App React App", appIcon = "", verifiedState = VerifiedDAppState.Verified {}, appSubtitle = "react-app.walletconnect.com",