diff --git a/src/components/NoteCard.tsx b/src/components/NoteCard.tsx index 4c3bc912..ccaee1ba 100644 --- a/src/components/NoteCard.tsx +++ b/src/components/NoteCard.tsx @@ -461,34 +461,25 @@ export function NoteCard({ event, className, repostedBy, compact, threaded, thre onAuxClick={handleAuxClick} >
+ {/* Left column: avatar with emoji badge overlay + optional thread line */}
- {/* Reaction emoji bubble instead of avatar */} -
- +
+ {avatarElement} + {/* Emoji badge overlaid at bottom-right of avatar */} +
+ +
{threaded &&
}
-
+ {/* Author name + "reacted" label */} +
{author.isLoading ? ( - + ) : ( - e.stopPropagation()}> - - - - {displayName[0]?.toUpperCase()} - - - - - )} - {author.isLoading ? ( - - ) : ( - - e.stopPropagation()}> + e.stopPropagation()}> {author.data?.event ? ( {displayName} ) : displayName} @@ -515,43 +506,29 @@ export function NoteCard({ event, className, repostedBy, compact, threaded, thre onAuxClick={handleAuxClick} >
- {/* Large reaction emoji */} -
- +
+ {avatarElement} + {/* Emoji badge overlaid at bottom-right of avatar */} +
+ +
{/* Author + "reacted" label */} -
-
- {author.isLoading ? ( - <> - - - - ) : ( - <> - - e.stopPropagation()}> - - - - {displayName[0]?.toUpperCase()} - - - - - - e.stopPropagation()}> - {author.data?.event ? ( - {displayName} - ) : displayName} - - - reacted - {timeAgo(event.created_at)} - - )} -
+
+ {author.isLoading ? ( + + ) : ( + + e.stopPropagation()}> + {author.data?.event ? ( + {displayName} + ) : displayName} + + + )} + reacted + {timeAgo(event.created_at)}
diff --git a/src/pages/PostDetailPage.tsx b/src/pages/PostDetailPage.tsx index 45563e47..737cdbb1 100644 --- a/src/pages/PostDetailPage.tsx +++ b/src/pages/PostDetailPage.tsx @@ -852,41 +852,42 @@ function PostDetailContent({ event }: { event: NostrEvent }) { {isReaction && (
- {/* Reaction emoji bubble — size-10 matches the threaded ancestor avatar column */} -
- + {/* Avatar with emoji badge overlay */} +
+ {author.isLoading ? ( + + ) : ( + + + + + + {displayName[0]?.toUpperCase()} + + + + + )} +
+ +
- {/* Author + "reacted" label + timestamp — single line */} -
+ {/* Author + "reacted" label + timestamp */} +
{author.isLoading ? ( - <> - - - + ) : ( - <> - - - - - - {displayName[0]?.toUpperCase()} - - - - - - - {author.data?.event ? ( - {displayName} - ) : displayName} - - - reacted - {formatFullDate(event.created_at)} - + + + {author.data?.event ? ( + {displayName} + ) : displayName} + + )} + reacted + {formatFullDate(event.created_at)}