From 498c3e2c271524f7bac08df9d6cc4d72174a4521 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 20 Sep 2023 19:13:54 -0700 Subject: Tune the treeview UI a bit more (#1494) --- src/view/com/post-thread/PostThread.tsx | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (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 373b4499d..3c5d3a88d 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -103,12 +103,6 @@ export const PostThread = observer(function PostThread({ return [] }, [view.isLoadingFromCache, view.thread, maxVisible]) const highlightedPostIndex = posts.findIndex(post => post._isHighlightedPost) - const showBottomBorder = - !treeView || - // in the treeview, only show the bottom border - // if there are replies under the highlighted posts - posts.findLast(v => v instanceof PostThreadItemModel) !== - posts[highlightedPostIndex] useSetTitle( view.thread?.postRecord && `${sanitizeDisplayName( @@ -194,10 +188,7 @@ export const PostThread = observer(function PostThread({ ) } else if (item === REPLY_PROMPT) { return ( - + {isDesktopWeb && } ) @@ -242,14 +233,11 @@ export const PostThread = observer(function PostThread({ // -prf return ( ) } else if (item === CHILD_SPINNER) { @@ -273,7 +261,7 @@ export const PostThread = observer(function PostThread({ } return <> }, - [onRefresh, onPressReply, pal, posts, isTablet, treeView, showBottomBorder], + [onRefresh, onPressReply, pal, posts, isTablet, treeView], ) // loading -- cgit 1.4.1