mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Showing extend button on shorter text blocks
This commit is contained in:
parent
b3d1440f6a
commit
482514e397
@ -58,7 +58,7 @@ fun HtmlTextBlock(
|
|||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (description.length >= 500) {
|
if (description.length >= 290) {
|
||||||
FilledTonalButton(onClick = { isExpanded = !isExpanded }) {
|
FilledTonalButton(onClick = { isExpanded = !isExpanded }) {
|
||||||
Text(text = stringResource(id = if (isExpanded) R.string.show_less else R.string.show_more))
|
Text(text = stringResource(id = if (isExpanded) R.string.show_less else R.string.show_more))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user