Feature - Collapse conversation by clicking outside #1885

Closed
edijs wants to merge 7 commits from gitlab-mr-iid-615 into develop
Member

Closes #393

Closes #393
Owner

As an option this is fine, but I think you should make it so that it scrolls you where the expanded post was when you close it the conversation.

As an option this is fine, but I think you should make it so that it scrolls you where the expanded post was when you close it the conversation.
Owner

This is a bit cryptic like this, I know it's for keeping count of the expanded statuses on a timeline but it also doesn't make sense in this context alone which means the logic is spread in too many places.

I also am a bit unsure if the timeline should have control over this, maybe something like this would work, when you click outside, all the expanded do this sort of an operation: if view is below the top of the conversation, scroll by the amount to reach the top, these together should work without having to actually communicate together. I'm not 100% sure if it would work perfectly like this tho

This is a bit cryptic like this, I know it's for keeping count of the expanded statuses on a timeline but it also doesn't make sense in this context alone which means the logic is spread in too many places. I also am a bit unsure if the timeline should have control over this, maybe something like this would work, when you click outside, all the expanded do this sort of an operation: if view is below the top of the conversation, scroll by the amount to reach the top, these together should work without having to actually communicate together. I'm not 100% sure if it would work perfectly like this tho
Author
Member

Yes, this is to count the number of expanded statuses on a timeline.

But the counting is only used to display Collapse All button on mobile view.

As we discussed, on mobile view background clicking does not work, instead Collapse All button will be displayed at top right if there are any expanded statuses.

All other operations are working as you said.

Yes, this is to count the number of expanded statuses on a timeline. But the counting is only used to display `Collapse All` button on mobile view. As we discussed, on mobile view background clicking does not work, instead `Collapse All` button will be displayed at top right if there are any expanded statuses. All other operations are working as you said.
Owner

Ah I see, thanks for the explanation, couldn't tell it immediately from code alone. Perhaps some naming of things could be changed to indicate better what it's for so less confusion like this happens when others read the code?

Ah I see, thanks for the explanation, couldn't tell it immediately from code alone. Perhaps some naming of things could be changed to indicate better what it's for so less confusion like this happens when others read the code?
Author
Member

Gotcha, let me update it

Gotcha, let me update it

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!1885
No description provided.