Centred modals sit in the vertical middle of the screen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ED1Y4LDd9wWTzrcadwtKVZ
This commit is contained in:
Claude
2026-10-20 15:39:08 +00:00
parent 1b9863c13d
commit 1d0e95d94f
+1
View File
@@ -4,6 +4,7 @@
position: fixed; inset: 0; display: flex; pointer-events: auto;
}
.cx-modal-layer { align-items: flex-start; justify-content: center; padding: 7vh var(--sp-6); }
.cx-modal-layer:has(.cx-modal-centered) { align-items: center; } /* a window that is not a form sits in the middle of the screen, not at the top */
.cx-backdrop { position: absolute; inset: 0; background: var(--backdrop); }
.cx-modal {