No need to crossfade when expanding content
This commit is contained in:
+9
-12
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user