mirror of
https://github.com/hoornet/vega.git
synced 2026-04-24 06:40:01 -07:00
Make reply-to @name clickable to open profile separately from thread
This commit is contained in:
@@ -186,17 +186,27 @@ export function NoteCard({ event, focused }: NoteCardProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{parentEventId && parentAuthorPubkey && (
|
{parentEventId && parentAuthorPubkey && (
|
||||||
<button
|
<div className="text-text-dim text-[11px] mb-1.5 flex items-center gap-1">
|
||||||
onClick={async (e) => {
|
<button
|
||||||
e.stopPropagation();
|
onClick={async (e) => {
|
||||||
const parent = await fetchNoteById(parentEventId);
|
e.stopPropagation();
|
||||||
if (parent) openThread(parent, "feed");
|
const parent = await fetchNoteById(parentEventId);
|
||||||
}}
|
if (parent) openThread(parent, "feed");
|
||||||
className="text-text-dim text-[11px] mb-1.5 flex items-center gap-1 hover:text-accent transition-colors"
|
}}
|
||||||
>
|
className="hover:text-accent transition-colors"
|
||||||
<span>↩ replying to </span>
|
>
|
||||||
<ParentAuthorName pubkey={parentAuthorPubkey} />
|
↩ replying to
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
openProfile(parentAuthorPubkey);
|
||||||
|
}}
|
||||||
|
className="hover:text-accent transition-colors"
|
||||||
|
>
|
||||||
|
<ParentAuthorName pubkey={parentAuthorPubkey} />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user