AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Dropdown Clipped By Viewport In Edge Function Logs & Foreign Key Modal

Multiple Radix UI Popper-based dropdowns in the Supabase dashboard are clipped by the viewport, making the Apply button unreachable without resizing; root cause is incorrect available-height calculation by the Popper collision boundary.

highConfidence 72%React

Origin Analysis

Radix UI Popper's collision boundary/available-height calculation fails to clamp the content to the visible viewport, causing the dropdown content wrapper to be sized larger than the reachable screen area and omit an internal scrollbar.
1. Go to Edge Functions -> any function -> Logs. 2. Click the 'Severity' filter button. 3. Reduce browser window height to normal/smaller size. 4. Observe that the dropdown extends below the visible viewport and has no internal scrollbar, making the Apply button inaccessible.

Fixing Code Block

Edge Case Audit

Applying a global max-height rule to all Radix Popper content may affect dropdowns that rely on auto-flipping or submenu positioning; verify that no nested menus or tooltips are inadvertently constrained. This is a hotfix: if any regression appears (e.g., double scrollbars, content cut off in short viewports), roll back by removing the CSS rule and instead pass a custom collisionBoundary/avoidCollisions configuration to Radix Popper per component. Test across Chrome, Firefox, Safari, and at 100% and 75% browser zoom.

Ecosystem Topology