mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
One more logic for comment collapsing
This commit is contained in:
parent
96f61e6e3f
commit
541d318fdc
1 changed files with 2 additions and 1 deletions
|
@ -796,7 +796,8 @@ function SubComments({ hasManyStatuses, replies, instance, hasParentThread }) {
|
|||
.filter((a, i, arr) => arr.findIndex((b) => b.id === a.id) === i)
|
||||
.slice(0, 3);
|
||||
|
||||
const open = !hasParentThread && (isBrief || !hasManyStatuses);
|
||||
const open =
|
||||
(!hasParentThread || replies.length === 1) && (isBrief || !hasManyStatuses);
|
||||
|
||||
return (
|
||||
<details class="replies" open={open}>
|
||||
|
|
Loading…
Reference in a new issue