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,9 +77,8 @@ fun ExpandableRichTextViewer(
} }
Box { Box {
Crossfade(text, label = "ExpandableRichTextViewer") {
RichTextViewer( RichTextViewer(
it, text,
canPreview, canPreview,
modifier.align(Alignment.TopStart), modifier.align(Alignment.TopStart),
tags, tags,
@@ -88,7 +86,6 @@ fun ExpandableRichTextViewer(
accountViewModel, accountViewModel,
nav, nav,
) )
}
if (content.length > whereToCut && !showFullText) { if (content.length > whereToCut && !showFullText) {
Row( Row(