orbit/dev
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
..
asteroids.test.mjs Fix asteroid rock overlap and add distinct compass color for clusters 2026-09-04 08:45:28 -06:00
cdp-eval.mjs
cdp-firefox.mjs Add save/load system with 10-slot localStorage bank and UI 2026-09-04 13:09:08 -06:00
cdpshot.mjs
clickout-test.html Close sub-menu on click-outside and guard compass autopilot during dismi 2026-09-04 13:26:45 -06:00
clickout-test.mjs Close sub-menu on click-outside and guard compass autopilot during dismi 2026-09-04 13:26:45 -06:00
decode.test.mjs Add SFX, dossier toggle/auto-fold, and tether HUD repositioning 2026-09-04 10:25:37 -06:00
discovery.test.mjs
galaxy.test.mjs
mining-test.html Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
mining-test.mjs Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
planet.test.mjs
popup-shot.html Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
popup-shot.mjs Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
research-builds.test.mjs
saves-ui-test.html Add save/load system with 10-slot localStorage bank and UI 2026-09-04 13:09:08 -06:00
saves-ui-test.mjs Fix SavePanel button overflow, header decode freeze, and card lock state 2026-09-04 14:48:36 -06:00
saves.test.mjs Add save/load system with 10-slot localStorage bank and UI 2026-09-04 13:09:08 -06:00
ship-behavior.test.mjs
smoke-game.mjs
starfield.test.mjs
system-hud.test.mjs Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
test-game.html
tether.test.mjs
wdshot.mjs Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
zorder-test.html Fix menu sub-bar, save panel, and confirm dialog input and z-order bugs 2026-09-04 14:31:34 -06:00
zorder-test.mjs Fix menu sub-bar, save panel, and confirm dialog input and z-order bugs 2026-09-04 14:31:34 -06:00