Skip to content

Commit

Permalink
fix: Adjust modal alignment to middle at breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rfgamaral committed Apr 18, 2024
1 parent c3ac8d1 commit 7015c1c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/modal/modal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
.overlay.fitContent > [data-focus-lock-disabled] {
padding-top: var(--reactist-modal-padding-top);
}
.overlay.fitContent > [data-focus-lock-disabled] .container {
max-height: calc(100vh - 2 * var(--reactist-modal-padding-top));
}

.container {
box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.16);
Expand Down Expand Up @@ -118,6 +115,19 @@
}
}

@media (min-height: 800px) {
.overlay.fitContent > [data-focus-lock-disabled] .container {
max-height: calc(100vh - 2 * var(--reactist-modal-padding-top));
}
}

@media (max-height: 800px) {
.overlay.fitContent > [data-focus-lock-disabled] {
padding-top: var(--reactist-spacing-xxlarge);
justify-content: center;
}
}

/* header */

.buttonContainer {
Expand Down

0 comments on commit 7015c1c

Please sign in to comment.