Update: Show full text of inexpandable text blocks (closes #265)

This commit is contained in:
machiav3lli 2022-08-06 03:40:00 +02:00
parent 4fa964418e
commit 7126feecf9

View File

@ -46,7 +46,7 @@ fun HtmlTextBlock(
color = Color.Transparent color = Color.Transparent
) { ) {
val maxLines by animateIntAsState( 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) animationSpec = tween(durationMillis = 200)
) )
SelectionContainer { SelectionContainer {