Fix modal positioning

Weirdly, mobile modals had 14px of padding, so we reset that and got rid of the min-width on Login and Signup modals
This commit is contained in:
Justin Edmund 2023-02-02 03:36:19 -08:00
parent a744b27940
commit 85d5ba075b
3 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,11 @@
.Dialog {
position: fixed;
box-sizing: border-box;
background: none;
border: 0;
inset: 0;
display: grid;
padding: 0;
place-items: center;
min-height: 100vh;
min-width: 100vw;
@ -42,6 +44,8 @@
@include breakpoint(phone) {
animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal forwards running
openModalMobile;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
min-width: inherit;
min-height: 80vh;
transform: initial;

View file

@ -1,6 +1,6 @@
.Login.DialogContent {
gap: $unit;
min-width: $unit * 52;
// min-width: $unit * 52;
.Fields {
display: flex;

View file

@ -1,6 +1,6 @@
.Signup.DialogContent {
gap: $unit;
min-width: $unit * 52;
// min-width: $unit * 52;
.Fields {
display: flex;