You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hierarchy of the parents is determined: parent0, parent1 ... parentN, comment
All comments betweenparent0 and comment, except comment's parents are collapsed
No changes are done to the hierarchy before parent0 and after comment
Demo (glitchy!):
Pros:
Easy to see the whole hierarchy of the given comment
Works perfectly with comments and parent of any size
Doesn't interfere (before and after is applied) with the scrolling
Cons:
Requires click from the user
Implementation is tricky (animation and scroll)
Scroll behavior could be unpredictable. Ideally, the "current" comment (and everything below it) should stay in place (and comments above slowly fly into their new place)
Idea:
When comment is clicked, both comment and its immediate parent are highlighted. Parent is fixed (as in position:fixed) at the top of the screen, but in such a way that it doesn't overlap the selected child.
figure1: Parent and child are selected. Because parent is already on the screen, it's position doesn't change:
figure2: Behavior when parent is scrolled out of view (it stays on top):
figure3: Behavior when parent doesn't fit on the screen and child is scrolled out of the view:
figure4: Caveat: very large parent may not fit on the screen
Pros:
Easy to see parent
Easy to enable (if the clickarea to show parent is the whole comment body)
Doesn't change the tree layout
Cons:
Tricky when parent/child are large
a tradeoff between automatic selection cancelling when out of screen, and allowing scrolling of large selection out of screen to see it fully
I've created several prototypes that explore the ideas of how to clearly display the parent of the given comment.
Some core properties:
Prototype 1
https://github.com/spaceshelter/orbitar/tree/comment-parent-tree-prototype1
Idea:
When arrow is pressed:
parent0
,parent1
...parentN
,comment
parent0
andcomment
, except comment's parents are collapsedparent0
and aftercomment
Demo (glitchy!):
Pros:
Cons:
Prototype 2
https://github.com/spaceshelter/orbitar/tree/comment-parent-tree-prototype2
Idea:
When comment is clicked, both comment and its immediate parent are highlighted. Parent is fixed (as in
position:fixed
) at the top of the screen, but in such a way that it doesn't overlap the selected child.figure1: Parent and child are selected. Because parent is already on the screen, it's position doesn't change:
figure2: Behavior when parent is scrolled out of view (it stays on top):
figure3: Behavior when parent doesn't fit on the screen and child is scrolled out of the view:
figure4: Caveat: very large parent may not fit on the screen
Pros:
Cons:
Variant 2: show parent on hover (+light styles):
https://github.com/spaceshelter/orbitar/tree/comment-parent-tree-prototype2.1
The text was updated successfully, but these errors were encountered: