From 8e5aef680b529f4abc1cb68407f779bcf82efa80 Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 20 Sep 2024 15:08:32 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../details/impl/ui/components/Description.kt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/details/impl/ui/components/Description.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/details/impl/ui/components/Description.kt index aca7dd32ae..987689d400 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/details/impl/ui/components/Description.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/details/impl/ui/components/Description.kt @@ -1,8 +1,8 @@ package com.tangem.features.markets.details.impl.ui.components +import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.text.ClickableText import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -38,17 +38,16 @@ internal fun Description( } } - ClickableText( - modifier = modifier, + Text( + modifier = modifier + .clickable( + interactionSource = null, + indication = null, + onClick = onReadMoreClick, + ), text = text, style = TangemTheme.typography.body2, - ) { - text.spanStyles.getOrNull(1)?.let { spanStyle -> - if (it in spanStyle.start..spanStyle.end) { - onReadMoreClick() - } - } - } + ) } else { Text( modifier = modifier,