From ff06486b15928f3161138bfd9ff0fc122e6b296e Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Wed, 30 Oct 2024 14:17:17 -0700 Subject: [PATCH] Add profile card preview on mention hover --- .../topicHeader/TopicHeader.tsx | 2 +- .../dataDisplay/postText/postText.tsx | 27 ++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/components/contentDisplay/topicHeader/TopicHeader.tsx b/src/components/contentDisplay/topicHeader/TopicHeader.tsx index 100fb36a..3f7f05c5 100644 --- a/src/components/contentDisplay/topicHeader/TopicHeader.tsx +++ b/src/components/contentDisplay/topicHeader/TopicHeader.tsx @@ -19,7 +19,7 @@ export default function TopicHeader(props: Props) { if (isLoading && !data) return ; return ( -
+
{error && ( e.stopPropagation()} - > - {segment.text} - + <> + {segment.mention?.did && ( + e.stopPropagation()} + > + + {segment.text} + + + )} + ), }); } else if (segment.isLink()) { @@ -61,12 +68,12 @@ export default function PostText(props: Props) { - +
+ Link -