Skip to content

[Website] Center the modal loading spinner over the page - #4050

Merged
adamziel merged 2 commits into
trunkfrom
modal-loading-overlay
Jul 14, 2026
Merged

[Website] Center the modal loading spinner over the page#4050
adamziel merged 2 commits into
trunkfrom
modal-loading-overlay

Conversation

@adamziel

@adamziel adamziel commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

This PR centers the modal loading spinner over the page instead of adding a column on the left.

The modal loading spinner mounts as the first child of the page flex row. While a modal file loads, the spinner appears in a new column on the left.

Make the spinner a fixed overlay that fills the page and centers its contents. Its z-index matches the WordPress modal that replaces it.

This removes the left-side blink found while working on the Dock in #3965.

Verified with npm exec nx test playground-website --output-style=static and npm exec nx typecheck playground-website --output-style=static.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the lazy modal loading fallback styling so it renders as a fixed, centered overlay instead of temporarily affecting the page’s flex layout while a modal chunk loads.

Changes:

  • Convert the fallback container into a viewport-covering fixed overlay (position: fixed; inset: 0)
  • Center fallback content via flex alignment in the overlay
  • Add an explanatory comment describing the layout “blink” being avoided

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamziel adamziel changed the title [Website] Center the lazy modal loading fallback Jul 14, 2026
@adamziel
adamziel merged commit e869ab4 into trunk Jul 14, 2026
53 checks passed
@adamziel
adamziel deleted the modal-loading-overlay branch July 14, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment