Repository navigation
fix: emoji picker places itself on screen + keycap emoji images (0.9.1) - #309
Merged
Merged
Conversation
… keycap emoji images (0.9.1) On /settings the picker kept the composer's "open upward" CSS inside a zero-height wrapper, so it opened above the button and ran under the sticky navbar: search and category tabs hidden, the grid looking empty. The reaction picker had the same problem near the top of the message list, clipped by the scroller. EmojiPicker is now position: fixed next to an anchor (anchorRef, or the element it is rendered in). placePopover() tries the preferred side, then the opposite, then right, then left, clamps inside the viewport below the navbar, and shrinks to the taller side when nothing fits whole. Settings anchors to the emoji button and prefers below; reactions end-align on your own messages; the composer still opens above. emojiKey() now pads codepoints to four hex digits like the OpenEmoji files, so #️⃣ 0️⃣-9️⃣ *️⃣ ©️ ®️ (14 emoji) stop 404ing in the picker and in messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan13 finding(s) MEDIUM: 9 | LOW: 4
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On qrypt.chat/settings the Profile emoji picker opened upward from the button (it inherited the composer's
bottom: calc(100% + .5rem)inside a zero-height wrapper). At the top of the page that put it at y≈−70px, under the sticky navbar: search and category tabs hidden, the grid looking empty. The reaction picker had the same flaw near the top of the message list (clipped by the scroller).Fix
src/lib/emoji/placement.js—placePopover(): try the preferred side, then opposite, right, left; clamp inside the viewport below the navbar; shrink to the taller side when nothing fits.EmojiPickerisposition: fixedagainstanchorRef(or its parent), re-placed on scroll/resize; newprefer/alignprops.emojiKey()pads codepoints to 4 hex digits like the OpenEmoji files, so 14 keycap/©/® emoji stop 404ing (picker and messages).Verified
🤖 Generated with Claude Code