orbit/js
Brian Fertig cff8fa335e Fix mining popup width and layout to fit real font metrics
- Widen the data-driven base width and clamp the panel to at least the widest button plus padding, since MenuButton measures itself in the live web font and won't shrink below its label.
- Rewrite layout() with a top-edge-relative p() helper so the header/MINE/CANCEL order stays consistent whether the popup opens above or below the anchor.
- Add dev/popup-shot.html/.mjs to boot the game headless, await the typefaces (same contract as js/main.js), open the mining menu on a deterministic cluster, and report panel/button geometry plus fit booleans.
- Extend dev/wdshot.mjs with an optional settleMs argument so pages with top-level awaits (font loading) can finish their async boot before the setup script runs.
2026-09-04 17:16:56 -06:00
..
config
entities
galaxy
mining Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
save Add save/load system with 10-slot localStorage bank and UI 2026-09-04 13:09:08 -06:00
scenes Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
tether
ui Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
utils Fix menu sub-bar, save panel, and confirm dialog input and z-order bugs 2026-09-04 14:31:34 -06:00
vendor
visuals
main.js