style(Nip): add icon, dotted underline, muted text for NIP links

This commit is contained in:
Claude
2026-01-11 21:05:02 +00:00
parent e70d7f3124
commit 8233268ee5

View File

@@ -1,3 +1,4 @@
import { FileText } from "lucide-react";
import type { NipNode } from "@/lib/nip-transformer";
import { useGrimoire } from "@/core/state";
import { getNIPInfo } from "@/lib/nip-icons";
@@ -25,10 +26,11 @@ export function Nip({ node }: NipNodeProps) {
return (
<button
onClick={openNIP}
className="text-primary hover:underline"
className="inline-flex items-center gap-0.5 text-muted-foreground underline decoration-dotted hover:text-foreground cursor-crosshair"
title={nipInfo?.description ?? `View NIP-${number} specification`}
>
{raw}
<FileText className="size-3" />
<span>{raw}</span>
</button>
);
}