mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-21 19:02:45 -05:00
## Description Association pickers can open above a modal and clip their search field or options. Cap dropdown height to Floating UI’s available space and keep the search field visible while options scroll. ## How Has This Been Tested? Dropdown component suite: 33 tests passed. Chromium regression tests cover 320px and 600px viewports, above-trigger placement, scrolling to the last option, and a visible search field. Type, lint, and formatting checks passed. ## Additional Options - [ ] [Optional] Please cherry-pick this PR to the latest release version. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Dropdown cards now fit within the available screen space, including near viewport edges or within clipped areas. The search field remains visible while scrolling through long lists. * **Documentation** * Updated dropdown guidance to describe available-height limits and search behavior. * Added instructions for running shared-component browser tests locally. * **Tests** * Added browser coverage for dropdown positioning and scrolling at different viewport heights. <!-- end of auto-generated comment: release notes by coderabbit.ai -->