mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
1.4 KiB
1.4 KiB
Popover Flip Bug in Constrained Viewports
Problem
The popover (using Floating UI flip middleware) fails to respect viewport boundaries in constrained height scenarios, causing it to overlap or be cut off instead of flipping to the top.
Affected Components
js/ui/overlay/popoverEngine.js- Popovers triggered from
data-test-trigger="grid-bottom-right"(e.g., intests/e2e/popover.spec.ts).
Reproduction Steps
- Open a popover near the bottom of a constrained viewport.
- Ensure there is enough space above the popover to flip.
- Observe that the popover stays at the bottom and is clipped.
Test Case
tests/e2e/popover.spec.ts:keeps the bottom-right grid menu inside the viewport(previously skipped).
History
- 2025-02-23: Verification failed. Fix attempt failed.
- 2026-02-08: Verification attempted but failed due to missing environment dependencies (
@playwright/test). - 2026-02-08: Environment fixed. Test validated as still failing (skipped).
- 2026-02-10: Verified fixed. The test
tests/e2e/popover.spec.tspasses consistently (10/10 runs) in the current environment. Issue marked as resolved and removed fromKNOWN_ISSUES.md.
Possible Causes
- Misconfiguration of
flipmiddleware (padding, boundary). - Conflict with
shiftmiddleware. - Viewport detection issues in constrained test environment.
Tags
- ui
- bug
- floating-ui
- resolved