From ae3099dfca13f6651762f6ea9a3d2a14ebc99df4 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sun, 18 Dec 2022 18:54:05 -0600 Subject: Improve thread rendering --- src/view/com/post-thread/PostThreadItem.tsx | 143 ++++++++++++++++------------ 1 file changed, 83 insertions(+), 60 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 1a0c744d6..45fd86116 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -226,71 +226,82 @@ export const PostThreadItem = observer(function PostThreadItem({ ) } else { return ( - - {!item.replyingTo && item.record.reply && ( - - )} - {item.replies?.length !== 0 && } - {item.replyingTo ? ( - - - - + <> + + {!item.replyingTo && item.record.reply && ( + + )} + {item.replies?.length !== 0 && } + {item.replyingTo ? ( + + + + + + + {item.replyingTo.text} + - - {item.replyingTo.text} - - - ) : undefined} - - - - + + + + + + + - - - - - - + + + + - - - - + + {item._hasMore ? ( + + Load more + + ) : undefined} + ) } }) @@ -398,4 +409,16 @@ const styles = StyleSheet.create({ expandedInfoItem: { marginRight: 10, }, + loadMore: { + paddingLeft: 28, + paddingVertical: 10, + backgroundColor: colors.white, + borderRadius: 6, + margin: 2, + marginBottom: 0, + }, + loadMoreText: { + fontSize: 17, + color: colors.blue3, + }, }) -- cgit 1.4.1