mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
Revert "fix(common): temporarily disable collapsible comments feature"
Doesn't fix the bug.
This reverts commit 7ae94ee2e6
.
This commit is contained in:
parent
3a6f7be808
commit
3a15eea2fd
2 changed files with 6 additions and 8 deletions
|
@ -130,7 +130,7 @@ private val CommentEntryPadding = 16f.dp
|
||||||
internal fun CommentEntry(
|
internal fun CommentEntry(
|
||||||
commentNode: CommentNode,
|
commentNode: CommentNode,
|
||||||
htmlConverter: HTMLConverter,
|
htmlConverter: HTMLConverter,
|
||||||
@Suppress("UNUSED_PARAMETER") toggleExpanded: (CommentNode) -> Unit,
|
toggleExpanded: (CommentNode) -> Unit,
|
||||||
openUserProfile: (String) -> Unit,
|
openUserProfile: (String) -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
|
@ -139,7 +139,7 @@ internal fun CommentEntry(
|
||||||
modifier =
|
modifier =
|
||||||
modifier
|
modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
/*.clickable { toggleExpanded(commentNode) }*/
|
.clickable { toggleExpanded(commentNode) }
|
||||||
.background(MaterialTheme.colorScheme.background)
|
.background(MaterialTheme.colorScheme.background)
|
||||||
.padding(
|
.padding(
|
||||||
start = CommentEntryPadding * commentNode.indentLevel,
|
start = CommentEntryPadding * commentNode.indentLevel,
|
||||||
|
|
|
@ -103,12 +103,10 @@ private fun LazyListScope.node(
|
||||||
toggleExpanded: (CommentNode) -> Unit,
|
toggleExpanded: (CommentNode) -> Unit,
|
||||||
openUserProfile: (String) -> Unit,
|
openUserProfile: (String) -> Unit,
|
||||||
) {
|
) {
|
||||||
/*
|
// Skip the node if neither the node nor its parent is expanded
|
||||||
// Skip the node if neither the node nor its parent is expanded
|
if (!node.isExpanded && node.parent?.isExpanded == false) {
|
||||||
if (!node.isExpanded && node.parent?.isExpanded == false) {
|
return
|
||||||
return
|
}
|
||||||
}
|
|
||||||
*/
|
|
||||||
item(key = node.comment.shortId) {
|
item(key = node.comment.shortId) {
|
||||||
CommentEntry(
|
CommentEntry(
|
||||||
commentNode = node,
|
commentNode = node,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue