Display fix + focus trap + mobile touch drag-to-edge-insert
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
defa0ba
DevelopersPopover layout fix
When Yuchen Yuan's row gained a second link chip (LinkedIn), the
single-row "icon + truncated name + chip + chip" layout squeezed the
name down to its first letter ("Y") inside the 320px popover.
Restructured to two rows per person: name on top (full width, no
truncation), link chips below with flex-wrap. Single-link entries
still look natural — the chip row simply contains one chip.
Focus trap for modals + drawers
New lib/focusTrap.ts useFocusTrap hook implements WAI-ARIA Authoring
Practices for dialog focus management:
- On open, focus moves into the container (prefers the container
itself if tabIndex=-1, else first focusable child).
- Tab from the last focusable wraps to first; Shift+Tab from first
wraps to last.
- Defensively re-routes focus into the container if something else
steals it (e.g. async overlay).
- Caller restores focus on close — we already do this for the upload
modal and auth dropdown via their existing openerRef pattern.
App…