Merged in fix/LOY-146-make-modal-content-scrollable (pull request #1488)
fix(LOY-146): Make Tier redeem modal content scrollable * fix(LOY-146): improve modal layout and scrolling in rewards tier redeem component Approved-by: Christian Andolf
This commit is contained in:
@@ -39,10 +39,13 @@
|
|||||||
border-radius: var(--Corner-radius-Medium);
|
border-radius: var(--Corner-radius-Medium);
|
||||||
box-shadow: var(--modal-box-shadow);
|
box-shadow: var(--modal-box-shadow);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-height: 90vh;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 101;
|
z-index: 101;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
@@ -50,6 +53,7 @@
|
|||||||
left: auto;
|
left: auto;
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
|
max-height: 80vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,6 +61,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-bottom: var(--Spacing-x3);
|
padding-bottom: var(--Spacing-x3);
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalHeader {
|
.modalHeader {
|
||||||
@@ -68,14 +74,17 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: var(--Spacing-x3) var(--Spacing-x2) 0;
|
padding: var(--Spacing-x3) var(--Spacing-x2) 0;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalContent {
|
.modalContent {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
grid-template-columns: 1fr;
|
||||||
align-items: center;
|
place-items: center;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
padding: 0 var(--Spacing-x3) var(--Spacing-x3);
|
padding: 0 var(--Spacing-x3) var(--Spacing-x3);
|
||||||
|
overflow-y: auto;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalFooter {
|
.modalFooter {
|
||||||
@@ -83,6 +92,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 var(--Spacing-x3) var(--Spacing-x1);
|
padding: 0 var(--Spacing-x3) var(--Spacing-x1);
|
||||||
gap: var(--Spacing-x-one-and-half);
|
gap: var(--Spacing-x-one-and-half);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalFooter > button {
|
.modalFooter > button {
|
||||||
|
|||||||
Reference in New Issue
Block a user