Skip to content

Commit

Permalink
modal-patch-mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sikhote committed Jan 15, 2025
1 parent c93de21 commit da5e6db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/modal/examples/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<async-modal />
<br />
<long-modal />
<div class="spacer" />
</div>
</template>

Expand Down Expand Up @@ -113,4 +114,8 @@ export default {
min-height: 80vh; /* fixes a safari display bug */
}
}
.spacer {
height: 100vh;
}
</style>
5 changes: 4 additions & 1 deletion src/components/modal/styles/CdrModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $modal-animation-duration: 150ms;
}

inset: 0;
height: 100vh;
height: 100%;
overflow-y: scroll;
position: fixed;
visibility: visible;
Expand Down Expand Up @@ -151,4 +151,7 @@ $modal-animation-duration: 150ms;
overflow: hidden !important;
position: fixed !important;
width: 100%;
height: 100%;
top: 0;
left: 0;
}

0 comments on commit da5e6db

Please sign in to comment.