Skip to content

Conversation

@AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Jan 6, 2026

Changes

  • On mobile, switch GIF picker from Radix Popover to full-screen Drawer
  • Fixes issue where mobile keyboard caused the popover to shift off-screen
  • Adds header with title and close button for mobile drawer
  • Desktop/tablet views continue using the existing popover behavior
  • Extracted shared GifPickerContent component for code reuse

Events

No new tracking events introduced.

Experiment

No new experiments introduced.

Manual Testing

On those affected packages:

  • Have you done sanity checks in the webapp?
  • Have you done sanity checks in the extension?
  • Does this not break anything in companion?

Did you test the modified components media queries?

  • MobileL (420px)
  • Tablet (656px)
  • Laptop (1020px)

Did you test on actual mobile devices?

  • iOS (Chrome and Safari)
  • Android

Preview domain

https://amardailydev-gif-popover-mobile.preview.app.daily.dev

AmarTrebinjac and others added 3 commits January 6, 2026 17:29
On mobile, the keyboard opening caused the Radix popover to shift off-screen due to viewport changes. Switching to a full-screen drawer on mobile (< tablet breakpoint) allows the keyboard to be handled naturally while keeping the GIF picker visible and usable. Desktop/tablet views continue using the popover.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vercel
Copy link

vercel bot commented Jan 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
daily-webapp Ready Ready Preview Jan 7, 2026 9:12am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
storybook Ignored Ignored Jan 7, 2026 9:12am

Add type="button" to the mobile GIF button to prevent it from
submitting the parent form when clicked. Buttons default to
type="submit" inside forms, and on desktop Radix's PopoverTrigger
handles this, but on mobile the button is rendered directly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
After selecting a GIF on mobile, blur the textarea to dismiss the
keyboard. This prevents accidental form submission when the user
taps the keyboard's "Go"/"Submit" button to dismiss the keyboard.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
AmarTrebinjac and others added 2 commits January 6, 2026 18:48
Add onKeyDown handler to the GIF search TextField that prevents
Enter key from propagating to the parent form. This stops the
mobile keyboard's "Go" button from submitting the comment form
when the user is searching for GIFs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@AmarTrebinjac AmarTrebinjac merged commit adb2e83 into main Jan 7, 2026
11 checks passed
@AmarTrebinjac AmarTrebinjac deleted the amardailydev/gif-popover-mobile branch January 7, 2026 09:19
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.

2 participants