mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +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
|
package dev.msfjarvis.claw.common.comments
|
||||||
|
|
||||||
import android.text.format.DateUtils
|
import android.text.format.DateUtils
|
||||||
import androidx.compose.animation.AnimatedContent
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
|
@ -169,11 +168,7 @@ internal fun CommentEntry(
|
||||||
modifier =
|
modifier =
|
||||||
Modifier.clickable { uriHandler.openUri("https://lobste.rs/u/${comment.user.username}") },
|
Modifier.clickable { uriHandler.openUri("https://lobste.rs/u/${comment.user.username}") },
|
||||||
)
|
)
|
||||||
AnimatedContent(
|
if (commentNode.isExpanded) {
|
||||||
label = "comment_body",
|
|
||||||
targetState = commentNode.isExpanded,
|
|
||||||
) { expandedState ->
|
|
||||||
if (expandedState) {
|
|
||||||
ThemedRichText(
|
ThemedRichText(
|
||||||
text = htmlConverter.convertHTMLToMarkdown(comment.comment),
|
text = htmlConverter.convertHTMLToMarkdown(comment.comment),
|
||||||
modifier = Modifier.padding(top = 8.dp)
|
modifier = Modifier.padding(top = 8.dp)
|
||||||
|
@ -182,7 +177,6 @@ internal fun CommentEntry(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun buildCommenterString(
|
fun buildCommenterString(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue