diff --git a/src/components/FeedPost.tsx b/src/components/FeedPost.tsx index 51511be..655b9a2 100644 --- a/src/components/FeedPost.tsx +++ b/src/components/FeedPost.tsx @@ -74,9 +74,11 @@ const styles = StyleSheet.create({ function PostHeader({ post, reblogParent, + compact }: { post: Post; reblogParent?: Post; + compact?: boolean }) { const router = useRouter(); @@ -89,7 +91,7 @@ function PostHeader({ return ( @@ -127,12 +129,12 @@ function InlineAuthorHeader({ post }: { post: Post }) { ); } -function PostBody({ post, showAuthor }: { post: Post; showAuthor?: boolean }) { +function PostBody({ post, showAuthor, compact }: { post: Post; showAuthor?: boolean, compact?: boolean }) { return ( post.text !== "" && ( <> {showAuthor && } - + {post.text} @@ -160,9 +162,10 @@ export default function FeedPost({ thread }: { thread: ThreadPost[] }) { {thread.map((post) => ( - 1} /> + 1} compact={thread.length === 1} /> ))}