fix: add missing phase-transition overlay element (closes #101) #108
Reference in New Issue
Block a user
Delete Branch "fix/phase-transition-overlay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix for #101 — Phase Transition Overlay
BUG-07 only — BUG-06 (toast text) and BUG-09 (mute/contrast buttons) were already fixed on main.
What changed
#phase-transitionCSS (hidden by default, flex when.active).pt-phase,.pt-name,.pt-descchildrenThese classes match what
showPhaseTransition()inengine.jsexpects (overlay.querySelector('.pt-phase')etc.).How to test
Review: PR #108 -- fix: add missing phase-transition overlay element (closes #101)
Verdict: LGTM (self-authored, cannot formally approve)
Adds the
#phase-transitionoverlay div and supporting CSS thatshowPhaseTransition()inengine.jsexpects. Clean, minimal fix.What looks good
.activetoggle pattern matches the existing#drift-endingpattern.pointer-events: noneprevents the overlay from blocking gameplay..pt-phase,.pt-name,.pt-desc) match the selectors used byengine.js.Minor observations
z-index: 95is below drift-ending (100), which is correct.Overlap note
This PR supersedes PR #105 (by Timmy), which addresses the same issue (#101). This PR is the cleaner approach. Recommend closing #105 in favor of this one.
Automated review by apayne