From 79709ed502bcc59f557d93ef7a820ba1887b6b76 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Mon, 1 Jun 2026 16:18:35 +0200 Subject: [PATCH] ensure custom emojis are visible --- package-lock.json | 4 +- package.json | 2 +- src/components/EmojiPicker/index.tsx | 48 ++++++++++++---------- src/components/EmojiPickerDialog/index.tsx | 18 ++++---- src/components/NoteStats/LikeButton.tsx | 5 ++- 5 files changed, 44 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1f7d3870..20e74036 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "imwald", - "version": "23.17.2", + "version": "23.17.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "imwald", - "version": "23.17.2", + "version": "23.17.3", "license": "MIT", "dependencies": { "@asciidoctor/core": "^3.0.4", diff --git a/package.json b/package.json index fb51bb56..fa4e8217 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imwald", - "version": "23.17.2", + "version": "23.17.3", "description": "Imwald — a user-friendly Nostr client focused on relay feed browsing, publications, and relay discovery", "private": true, "type": "module", diff --git a/src/components/EmojiPicker/index.tsx b/src/components/EmojiPicker/index.tsx index ed3fb254..eebef265 100644 --- a/src/components/EmojiPicker/index.tsx +++ b/src/components/EmojiPicker/index.tsx @@ -134,9 +134,31 @@ export default function EmojiPicker({ const reactionsList = reactions ?? [...DEFAULT_SUGGESTED_EMOJIS] + const ownEmojisRow = + ownEmojis.length > 0 ? ( +
+ {ownEmojis.map((emoji) => ( + + ))} +
+ ) : null + if (mode === 'reactions') { return ( -
+
+ {ownEmojisRow} +
{reactionsList.map((emoji) => ( +
) } return ( -
- {ownEmojis.length > 0 && ( -
- {ownEmojis.map((emoji) => ( - - ))} -
- )} -
+
+ {ownEmojisRow} +
) } diff --git a/src/components/EmojiPickerDialog/index.tsx b/src/components/EmojiPickerDialog/index.tsx index 8766b5ae..a337696f 100644 --- a/src/components/EmojiPickerDialog/index.tsx +++ b/src/components/EmojiPickerDialog/index.tsx @@ -39,14 +39,16 @@ export default function EmojiPickerDialog({ Emoji Picker -
- { - e.stopPropagation() - setOpen(false) - onEmojiClick?.(emoji) - }} - /> +
+ {open ? ( + { + e.stopPropagation() + setOpen(false) + onEmojiClick?.(emoji) + }} + /> + ) : null}
diff --git a/src/components/NoteStats/LikeButton.tsx b/src/components/NoteStats/LikeButton.tsx index ac40f6ef..89486aae 100644 --- a/src/components/NoteStats/LikeButton.tsx +++ b/src/components/NoteStats/LikeButton.tsx @@ -340,6 +340,7 @@ export function LikeButtonWithStats({ { const t = e.target as HTMLElement | null if (t?.closest?.('[data-vaul-overlay]')) return @@ -349,7 +350,9 @@ export function LikeButtonWithStats({ React - {likeEmojiPicker} +
+ {isEmojiReactionsOpen ? likeEmojiPicker : null} +