From 2ad0d059ac756cb3358bfda8e855584b1e517e3a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 5 Dec 2023 18:18:53 -0800 Subject: More treeview UI tweaks (#2093) * Improve tree-view spacing consistency and always include one reply bar level * Reduce expanded post avi size --- src/view/com/post-thread/PostThread.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/view/com/post-thread/PostThread.tsx') diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 523a63eb1..22438fc79 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -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 ( @@ -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} -- cgit 1.4.1