Skip to content

Commit

Permalink
[WALL] Aizad/WALL-4048/Adding Scroll To ModalStepWrapper (deriv-com#1…
Browse files Browse the repository at this point in the history
…5085)

* chore: Add scroll to small screens for modal

* chore: add styles for desktop screens
  • Loading branch information
aizad-deriv authored and vinu-deriv committed May 28, 2024
1 parent fdd0fe2 commit 184303a
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
border-radius: 0.8rem;
animation: fadein 0.6s ease backwards;

@include desktop {
max-height: calc(var(--wallets-vh, 1vh) * 100 - 10rem);
overflow: auto;
}

@include mobile {
animation: popup 0.2s;
height: calc(var(--wallets-vh, 1vh) * 100 - 4rem);
Expand Down Expand Up @@ -36,11 +41,15 @@
}

&__header {
position: sticky;
inset: 0;
padding: 1.6rem 2.4rem;
border-bottom: 0.2rem solid #f2f3f4;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--general-main-2, #ffffff);
z-index: 1;

&-close-icon {
cursor: pointer;
Expand All @@ -49,7 +58,7 @@
@include mobile {
display: grid;
grid-template-columns: auto 2rem;
background-color: #ffffff;
background: var(--general-main-2, #ffffff);
position: relative;
z-index: 99;
width: 100%;
Expand All @@ -74,7 +83,7 @@
align-items: center;

@include mobile {
background-color: #ffffff;
background: var(--general-main-2, #ffffff);
position: relative;
z-index: 99;
height: auto;
Expand Down

0 comments on commit 184303a

Please sign in to comment.