fix: remove hardcoded text-sm from media placeholder in Link.tsx

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.
This commit is contained in:
Claude
2025-12-28 16:17:58 +00:00
parent 7241b3fb5a
commit 57566ed364

View File

@@ -10,7 +10,7 @@ import { PlainLink } from "../LinkPreview";
import { useRichTextOptions } from "../RichText";
function MediaPlaceholder({ type }: { type: "image" | "video" | "audio" }) {
return <span className="text-muted-foreground text-sm">[{type}]</span>;
return <span className="text-muted-foreground">[{type}]</span>;
}
interface LinkNodeProps {