[bskyembed] Don't render empty post text

Posts with no text (common for gallery posts) rendered an empty <p>
that still counted as a flex child, doubling the gap above the embed.
This commit is contained in:
vineyardbovines
2026-06-11 11:54:54 -04:00
parent dce88acc04
commit fd48c3a61c
+3 -1
View File
@@ -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 <p> that adds an extra flex gap above the embed
if (!record?.text) return null
const rt = new RichText({
text: record.text,