Skip to content

fix(screenshot): remove spacer causing layout jump (@byseif21)#7750

Merged
Miodec merged 1 commit intomonkeytypegame:masterfrom
byseif21:fix/screenshot-layout-jump
Mar 30, 2026
Merged

fix(screenshot): remove spacer causing layout jump (@byseif21)#7750
Miodec merged 1 commit intomonkeytypegame:masterfrom
byseif21:fix/screenshot-layout-jump

Conversation

@byseif21
Copy link
Copy Markdown
Contributor

@byseif21 byseif21 commented Mar 30, 2026

after the solid migration, obsolete & no longer being manually removed from the DOM layout during screenshot capture

Copilot AI review requested due to automatic review settings March 30, 2026 19:35
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 30, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the screenshotSpacer DOM insertion/removal in the screenshot-test helper to prevent layout shifts (“layout jump”) during screenshot generation in the frontend test tooling.

Changes:

  • Stop removing .pageTest .screenshotSpacer during revert().
  • Stop forcibly removing/adding a .screenshotSpacer in generateCanvas() before rendering.

@Miodec Miodec merged commit c273f0f into monkeytypegame:master Mar 30, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants