mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
feat(common): match node collapse behaviour with the lobste.rs site
This commit is contained in:
parent
450601f26b
commit
26f69c2027
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ fun LazyListScope.node(
|
|||
htmlConverter: HTMLConverter,
|
||||
toggleExpanded: (CommentNode) -> Unit,
|
||||
) {
|
||||
// Skip the node if neither the node nor its parent is expanded
|
||||
if (!node.isExpanded && node.parent?.isExpanded == false) {
|
||||
return
|
||||
}
|
||||
item {
|
||||
CommentEntry(
|
||||
commentNode = node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue