From 13c11801b90b3241eb1244badedf7c510578d6f0 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 22 Aug 2023 12:49:03 -0500 Subject: fix thread double border (#1251) --- src/view/com/post-thread/PostThreadItem.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/view/com/post-thread/PostThreadItem.tsx') diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 8a56012f0..e44151ac5 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -38,9 +38,11 @@ import {isDesktopWeb} from 'platform/detection' export const PostThreadItem = observer(function PostThreadItem({ item, onPostReply, + hasPrecedingItem, }: { item: PostThreadItemModel onPostReply: () => void + hasPrecedingItem: boolean }) { const pal = usePalette('default') const store = useStores() @@ -359,8 +361,7 @@ export const PostThreadItem = observer(function PostThreadItem({ styles.outer, pal.border, pal.view, - item._showParentReplyLine && styles.noTopBorder, - !item._showChildReplyLine && {borderBottomWidth: 1}, + item._showParentReplyLine && hasPrecedingItem && styles.noTopBorder, ]} moderation={item.moderation.content}> @@ -483,7 +484,7 @@ export const PostThreadItem = observer(function PostThreadItem({