From 86a70ffb48ab0786866819c52b343caee7fecfb0 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 7 Jun 2023 02:42:15 +0530 Subject: [PATCH] feat(common): remove animation for comment text --- .../claw/common/comments/CommentEntry.kt | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt index 20efff97..57a48b14 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt @@ -7,7 +7,6 @@ package dev.msfjarvis.claw.common.comments import android.text.format.DateUtils -import androidx.compose.animation.AnimatedContent import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement @@ -169,16 +168,11 @@ internal fun CommentEntry( modifier = Modifier.clickable { uriHandler.openUri("https://lobste.rs/u/${comment.user.username}") }, ) - AnimatedContent( - label = "comment_body", - targetState = commentNode.isExpanded, - ) { expandedState -> - if (expandedState) { - ThemedRichText( - text = htmlConverter.convertHTMLToMarkdown(comment.comment), - modifier = Modifier.padding(top = 8.dp) - ) - } + if (commentNode.isExpanded) { + ThemedRichText( + text = htmlConverter.convertHTMLToMarkdown(comment.comment), + modifier = Modifier.padding(top = 8.dp) + ) } } }