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:
parent
a744b27940
commit
85d5ba075b
3 changed files with 6 additions and 2 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
.Dialog {
|
.Dialog {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
box-sizing: border-box;
|
||||||
background: none;
|
background: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
padding: 0;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-width: 100vw;
|
min-width: 100vw;
|
||||||
|
|
@ -42,6 +44,8 @@
|
||||||
@include breakpoint(phone) {
|
@include breakpoint(phone) {
|
||||||
animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal forwards running
|
animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal forwards running
|
||||||
openModalMobile;
|
openModalMobile;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
min-width: inherit;
|
min-width: inherit;
|
||||||
min-height: 80vh;
|
min-height: 80vh;
|
||||||
transform: initial;
|
transform: initial;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.Login.DialogContent {
|
.Login.DialogContent {
|
||||||
gap: $unit;
|
gap: $unit;
|
||||||
min-width: $unit * 52;
|
// min-width: $unit * 52;
|
||||||
|
|
||||||
.Fields {
|
.Fields {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.Signup.DialogContent {
|
.Signup.DialogContent {
|
||||||
gap: $unit;
|
gap: $unit;
|
||||||
min-width: $unit * 52;
|
// min-width: $unit * 52;
|
||||||
|
|
||||||
.Fields {
|
.Fields {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue