feat(common): remove animation for comment text

This commit is contained in:
Harsh Shandilya 2023-06-07 02:42:15 +05:30
parent 2bb71238bc
commit 86a70ffb48
No known key found for this signature in database

View file

@ -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,11 +168,7 @@ 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) {
if (commentNode.isExpanded) {
ThemedRichText(
text = htmlConverter.convertHTMLToMarkdown(comment.comment),
modifier = Modifier.padding(top = 8.dp)
@ -181,7 +176,6 @@ internal fun CommentEntry(
}
}
}
}
}
@Composable