From b4125a0511eca66daeae378e068851caf7c70fdb Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Jan 2026 21:12:02 +0000 Subject: [PATCH] fix: make BadgeCheck icon visible by separating from gradient text The badge icon was invisible because it inherited the text-transparent class from the parent span. Fixed by: - Moving gradient styling to only the displayName span - Giving BadgeCheck its own explicit color (orange-500 for logged-in, violet-500 for others) - Icon now properly visible and color-coordinated with the gradient --- src/components/nostr/UserName.tsx | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/components/nostr/UserName.tsx b/src/components/nostr/UserName.tsx index 868e5a5..2996991 100644 --- a/src/components/nostr/UserName.tsx +++ b/src/components/nostr/UserName.tsx @@ -40,22 +40,32 @@ export function UserName({ pubkey, isMention, className }: UserNameProps) { dir="auto" className={cn( "font-semibold cursor-crosshair hover:underline hover:decoration-dotted inline-flex items-center gap-1", - isGrimoire - ? isActiveAccount - ? "bg-gradient-to-tr from-orange-400 to-amber-600 bg-clip-text text-transparent" - : "bg-gradient-to-tr from-violet-500 to-fuchsia-600 bg-clip-text text-transparent" - : isActiveAccount - ? "text-highlight" - : "text-accent", className, )} onClick={handleClick} > - + {isMention ? "@" : null} {displayName} - {isGrimoire && } + {isGrimoire && ( + + )} ); }