Skip to content

fix: mobile emoji picker centered with scale animation#31

Open
Abmarne wants to merge 1 commit intoCodePlaygroundHub:mainfrom
Abmarne:main
Open

fix: mobile emoji picker centered with scale animation#31
Abmarne wants to merge 1 commit intoCodePlaygroundHub:mainfrom
Abmarne:main

Conversation

@Abmarne
Copy link
Copy Markdown

@Abmarne Abmarne commented Mar 19, 2026

Fixes: #29

Changes made to frontend/src/components/MessageBubble.jsx:

  1. Centered mobile positioning - Emoji picker now uses top: 50%, left: 50%, transform: translate(-50%, -50%) for mobile instead of calculated rect position

  2. Larger touch targets - Emoji buttons increased from text-2xl to text-2xl sm:text-xl with larger padding p-2 sm:p-1 for better touch accuracy

  3. Spring animation - Added framer-motion spring animation with type: "spring", stiffness: 400, damping: 25 and staggered emoji entrance with delay: index * 0.05

  4. Click-away backdrop - Mobile now has backdrop-blur-sm with bg-black/30 overlay that closes picker on tap

  5. Hover/tap feedback - Added whileHover={{ scale: 1.3 }} and whileTap={{ scale: 0.85 }} for satisfying micro-interactions

  6. Minimum width - Added minWidth: "280px" to ensure emojis stay readable on all screen sizes

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 19, 2026

@Abmarne is attempting to deploy a commit to the Akash Santra 's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Akash504-ai Akash504-ai self-requested a review March 21, 2026 09:32
@Akash504-ai Akash504-ai self-assigned this Mar 21, 2026
@Akash504-ai
Copy link
Copy Markdown
Collaborator

Thanks for the improvements!
Before merging, could you share a screenshot or short video of how the emoji picker looks/behaves on mobile (especially the animation + positioning)?

@Akash504-ai Akash504-ai removed their request for review March 22, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile Responsive Emoji Picker

2 participants