Fix: Showing extend button on shorter text blocks

This commit is contained in:
machiav3lli 2022-06-03 10:44:09 +02:00
parent b3d1440f6a
commit 482514e397

View File

@ -58,7 +58,7 @@ fun HtmlTextBlock(
overflow = TextOverflow.Ellipsis
)
}
if (description.length >= 500) {
if (description.length >= 290) {
FilledTonalButton(onClick = { isExpanded = !isExpanded }) {
Text(text = stringResource(id = if (isExpanded) R.string.show_less else R.string.show_more))
}