mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
ef3f95a7af
## Summary - Compute mobile dropdown bottom offsets in layout-viewport coordinates, matching the fixed Radix popover wrapper. - Use `visualViewport.offsetTop` to clamp the above-composer popup height when iOS WebKit pans the visual viewport for the soft keyboard. - Align mobile dropdown width/left to the chat composer and add a Storybook regression for shifted visual viewports. ## Testing - `cd site && pnpm tsc --noEmit -p .` - `cd site && pnpm test:storybook src/pages/AgentsPage/components/ChatMessageInput/ChatMessageInput.stories.tsx` - `cd site && pnpm lint` ## Manual mobile verification Start dev mode with `./scripts/develop.sh`, open the forwarded port 8080 URL on a real iPhone in Safari and Chrome, focus the Agents chat input, type `/`, and verify the personal skills popup appears directly above the composer, stays within the visible viewport while the keyboard is open, and scrolls internally for long lists. Generated by Coder Agents.