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 package com.vitorpamplona.amethyst.ui.components
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Box
@@ -78,17 +77,15 @@ fun ExpandableRichTextViewer(
} }
Box { Box {
Crossfade(text, label = "ExpandableRichTextViewer") { RichTextViewer(
RichTextViewer( text,
it, canPreview,
canPreview, modifier.align(Alignment.TopStart),
modifier.align(Alignment.TopStart), tags,
tags, backgroundColor,
backgroundColor, accountViewModel,
accountViewModel, nav,
nav, )
)
}
if (content.length > whereToCut && !showFullText) { if (content.length > whereToCut && !showFullText) {
Row( Row(