No need to crossfade when expanding content

This commit is contained in:
Vitor Pamplona
2024-02-12 18:11:28 -05:00
parent 60e87d943a
commit d41eb4ce31
@@ -20,7 +20,6 @@
*/
package com.vitorpamplona.amethyst.ui.components
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
@@ -78,9 +77,8 @@ fun ExpandableRichTextViewer(
}
Box {
Crossfade(text, label = "ExpandableRichTextViewer") {
RichTextViewer(
it,
text,
canPreview,
modifier.align(Alignment.TopStart),
tags,
@@ -88,7 +86,6 @@ fun ExpandableRichTextViewer(
accountViewModel,
nav,
)
}
if (content.length > whereToCut && !showFullText) {
Row(