Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: prevent reaction picker from flashing at page origin (#6402)

lemoana631a7ef48899
diff --git a/web/src/components/MemoReactionListView/ReactionSelector.tsx b/web/src/components/MemoReactionListView/ReactionSelector.tsx
index 9dced1098..fea26e883 100644
--- a/web/src/components/MemoReactionListView/ReactionSelector.tsx
+++ b/web/src/components/MemoReactionListView/ReactionSelector.tsx
@@ -37,7 +37,13 @@ const ReactionSelector = ({ memo, trigger }: Props) => {
>
<SmilePlusIcon className="size-4" strokeWidth={1.8} />
</PopoverTrigger>
- <PopoverContent align="center" className="max-w-[90vw] sm:max-w-md">
+ {/*
+ * The header trigger is intentionally hidden once its memo card is no
+ * longer hovered. An exit transition would therefore outlive its anchor
+ * and Base UI would briefly reposition the portal at (0, 0). Close this
+ * picker immediately instead of animating an unanchored popup.
+ */}
+ <PopoverContent align="center" className="max-w-[90vw] transition-none sm:max-w-md">
<div className="grid grid-cols-4 sm:grid-cols-6 md:grid-cols-8 gap-1 max-h-64 overflow-y-auto">
{memoRelatedSetting.reactions.map((reactionType) => (
<button