From 682dfe8639b326d2cc14827e84270129cf6316f8 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 17 Jan 2026 17:41:08 +0000 Subject: [PATCH] refactor: Make badge award feed view more compact Change BadgeAwardRenderer to display inline compact format: - Small thumbnail (size-6) inline with text - Badge name linked to badge event - "awarded to n people" linked to award event (clickable) - All elements in single line with flex-wrap for overflow Layout: [thumbnail] badge-name awarded to n people --- .../nostr/kinds/BadgeAwardRenderer.tsx | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/nostr/kinds/BadgeAwardRenderer.tsx b/src/components/nostr/kinds/BadgeAwardRenderer.tsx index b787170..d2af4ef 100644 --- a/src/components/nostr/kinds/BadgeAwardRenderer.tsx +++ b/src/components/nostr/kinds/BadgeAwardRenderer.tsx @@ -33,7 +33,7 @@ function parseAddress(aTagValue: string): AddressPointer | null { /** * Renderer for Kind 8 - Badge Award (NIP-58) - * Shows badge thumbnail, name, and number of recipients + * Shows inline badge thumbnail, name, and linked recipient count */ export function BadgeAwardRenderer({ event }: BaseEventProps) { const badgeAddress = getAwardBadgeAddress(event); @@ -65,41 +65,41 @@ export function BadgeAwardRenderer({ event }: BaseEventProps) { return ( -
- {/* Badge Thumbnail */} +
+ {/* Badge Thumbnail - small inline */} {badgeImageUrl ? ( {displayTitle} ) : ( -
- -
+ )} - {/* Badge Info */} -
- {badgeEvent ? ( - - {displayTitle} - - ) : ( - - {displayTitle} - - )} + {/* Badge Name - linked to badge event */} + {badgeEvent ? ( + + {displayTitle} + + ) : ( + + {displayTitle} + + )} -

- Awarded to {recipientCount}{" "} - {recipientCount === 1 ? "person" : "people"} -

-
+ {/* Awarded count - linked to this award event */} + + awarded to {recipientCount}{" "} + {recipientCount === 1 ? "person" : "people"} +
);