More treeview UI tweaks (#2093)
* Improve tree-view spacing consistency and always include one reply bar level * Reduce expanded post avi size
This commit is contained in:
parent
511d5d999b
commit
2ad0d059ac
2 changed files with 35 additions and 8 deletions
|
@ -280,6 +280,9 @@ function PostThreadLoaded({
|
|||
const prev = isThreadPost(posts[index - 1])
|
||||
? (posts[index - 1] as ThreadPost)
|
||||
: undefined
|
||||
const next = isThreadPost(posts[index - 1])
|
||||
? (posts[index - 1] as ThreadPost)
|
||||
: undefined
|
||||
return (
|
||||
<View
|
||||
ref={item.ctx.isHighlightedPost ? highlightedPostRef : undefined}>
|
||||
|
@ -288,6 +291,8 @@ function PostThreadLoaded({
|
|||
record={item.record}
|
||||
treeView={threadViewPrefs.lab_treeViewEnabled || false}
|
||||
depth={item.ctx.depth}
|
||||
prevPost={prev}
|
||||
nextPost={next}
|
||||
isHighlightedPost={item.ctx.isHighlightedPost}
|
||||
hasMore={item.ctx.hasMore}
|
||||
showChildReplyLine={item.ctx.showChildReplyLine}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue