mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
feat(common): remove animation for comment text
This commit is contained in:
parent
2bb71238bc
commit
86a70ffb48
1 changed files with 5 additions and 11 deletions
|
@ -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)
|
||||
|
@ -182,7 +177,6 @@ internal fun CommentEntry(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun buildCommenterString(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue