diff --git a/src/components/chat/EmojiPickerDialog.tsx b/src/components/chat/EmojiPickerDialog.tsx index 22a1d4c..72a20fd 100644 --- a/src/components/chat/EmojiPickerDialog.tsx +++ b/src/components/chat/EmojiPickerDialog.tsx @@ -5,6 +5,7 @@ import { Search } from "lucide-react"; import type { EmojiSearchResult } from "@/services/emoji-search"; import type { EmojiTag } from "@/lib/emoji-helpers"; import { useEmojiSearch } from "@/hooks/useEmojiSearch"; +import { CustomEmoji } from "../nostr/CustomEmoji"; interface EmojiPickerDialogProps { open: boolean; @@ -153,7 +154,7 @@ export function EmojiPickerDialog({ {/* Search input */} -
+
{/* Fixed 1-row emoji grid (8 emoji) with consistent height */} -
+
{displayEmojis.length > 0 ? ( displayEmojis.map((result) => ( )) ) : ( -
+
No emojis found
)} diff --git a/src/components/nostr/CustomEmoji.tsx b/src/components/nostr/CustomEmoji.tsx index 2f57523..6125466 100644 --- a/src/components/nostr/CustomEmoji.tsx +++ b/src/components/nostr/CustomEmoji.tsx @@ -1,5 +1,6 @@ import { useState } from "react"; import { cn } from "@/lib/utils"; +import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip"; export interface CustomEmojiProps { /** The shortcode (without colons) */ @@ -46,17 +47,22 @@ export function CustomEmoji({ } return ( - {`:${shortcode}:`} setError(true)} - /> + + + {`:${shortcode}:`} setError(true)} + /> + + :{shortcode}: + ); }