From fd48c3a61cdb65cb46887974825b15f4bae265fb Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 11 Jun 2026 11:54:54 -0400 Subject: [PATCH] [bskyembed] Don't render empty post text Posts with no text (common for gallery posts) rendered an empty

that still counted as a flex child, doubling the gap above the embed. --- bskyembed/src/components/post.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bskyembed/src/components/post.tsx b/bskyembed/src/components/post.tsx index 4167dc0869..46faebc4a7 100644 --- a/bskyembed/src/components/post.tsx +++ b/bskyembed/src/components/post.tsx @@ -154,7 +154,9 @@ export function Post({thread}: Props) { } function PostContent({record}: {record: AppBskyFeedPost.Record | null}) { - if (!record) return null + // text-only check - posts with no text (e.g. gallery posts) would otherwise + // render an empty

that adds an extra flex gap above the embed + if (!record?.text) return null const rt = new RichText({ text: record.text,