From 7126feecf98d0d62ad1271c5e980f31f9ec8dda6 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Sat, 6 Aug 2022 03:40:00 +0200 Subject: [PATCH] Update: Show full text of inexpandable text blocks (closes #265) --- .../fdroid/ui/compose/pages/app_detail/components/TextBlock.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/pages/app_detail/components/TextBlock.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/pages/app_detail/components/TextBlock.kt index 6c2ffd79..f116a2f3 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/pages/app_detail/components/TextBlock.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/pages/app_detail/components/TextBlock.kt @@ -46,7 +46,7 @@ fun HtmlTextBlock( color = Color.Transparent ) { val maxLines by animateIntAsState( - targetValue = if (isExpanded) Int.MAX_VALUE else 12, + targetValue = if (isExpanded || !isExpandable) Int.MAX_VALUE else 12, animationSpec = tween(durationMillis = 200) ) SelectionContainer {