Keep centered popovers inside the viewport and place them before paint

Measure the popover in a hidden, out-of-flow state and position it in a
layout effect, so opening it no longer grows the page for a frame.
Centered (top/bottom) popovers are clamped to stay within the viewport.
Also ignore /test and /.tmp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-25 04:58:51 +01:00
co-authored by Claude Opus 5.5
parent f9fa9da091
commit d9b1463db2
3 changed files with 80 additions and 10 deletions
+2
View File
@@ -36,3 +36,5 @@ dist
# dev playground artifacts (bunext)
.bunext
/test
/.tmp