From 38faf1672346fb098e4918822abd7955a7587e91 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Sun, 28 Dec 2025 17:26:22 +0100 Subject: [PATCH] fix: remove hardcoded text-sm from media placeholder in Link.tsx (#30) The MediaPlaceholder component in Link.tsx had text-sm hardcoded, causing it to appear larger than surrounding text in compact contexts. Now all placeholder components (Link, Gallery, Mention) consistently inherit font size from their parent. Co-authored-by: Claude --- src/components/nostr/RichText/Link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nostr/RichText/Link.tsx b/src/components/nostr/RichText/Link.tsx index 3000872..d37830f 100644 --- a/src/components/nostr/RichText/Link.tsx +++ b/src/components/nostr/RichText/Link.tsx @@ -10,7 +10,7 @@ import { PlainLink } from "../LinkPreview"; import { useRichTextOptions } from "../RichText"; function MediaPlaceholder({ type }: { type: "image" | "video" | "audio" }) { - return [{type}]; + return [{type}]; } interface LinkNodeProps {