From 32f7d1b531be4ab3ce0cde25cfa2831af2662f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Tue, 31 Mar 2026 18:47:03 +0200 Subject: [PATCH] ux: use popover for reactions --- src/components/chat/MessageReactions.tsx | 35 ++++++++++-------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/src/components/chat/MessageReactions.tsx b/src/components/chat/MessageReactions.tsx index 61957cd..c6d6711 100644 --- a/src/components/chat/MessageReactions.tsx +++ b/src/components/chat/MessageReactions.tsx @@ -6,10 +6,10 @@ import pool from "@/services/relay-pool"; import accountManager from "@/services/accounts"; import { EMOJI_SHORTCODE_REGEX } from "@/lib/emoji-helpers"; import { - Tooltip, - TooltipTrigger, - TooltipContent, -} from "@/components/ui/tooltip"; + Popover, + PopoverTrigger, + PopoverContent, +} from "@/components/ui/popover"; import { UserName } from "@/components/nostr/UserName"; interface MessageReactionsProps { @@ -137,18 +137,18 @@ export function MessageReactions({ messageId, relays }: MessageReactionsProps) { if (aggregated.length === 0) return null; return ( - - -
+ + +
-
- + + +
{aggregated.map((reaction) => (
{i > 0 && (i === reaction.pubkeys.length - 1 ? ( - - and - + and ) : ( - , + , ))} - + ))}
))}
-
-
+ + ); }