Skip to content

Commit

Permalink
Small fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pipui committed Apr 28, 2023
1 parent 3ec0470 commit f44c368
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ class PipUI {

if(typeof callback != 'function'){ return; }

document.body.addEventListener(event, (e) => {
document.body.addEventListener(event, e => {

let target = e.target;

Expand Down
9 changes: 8 additions & 1 deletion src/scss/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,18 @@
align-items: center;
grid-template-columns: 100%;
padding: 0 $DEFAULT_PADDING_WIDTH;
height: calc(100vh - #{$DEFAULT_PADDING_WIDTH * 2}); /* 100 vertical height - 20px(x2) padding */
max-height: calc(100vh - #{$DEFAULT_PADDING_WIDTH * 2}); /* 100 vertical height - 20px(x2) padding */
overflow: auto;
position: relative;
z-index: 21;
scrollbar-width: thin;
pointer-events: none;
}

.modal.modal-active > .modal-wrapper {
pointer-events: auto;
}

.modal > .modal-wrapper > .modal-content {
pointer-events: auto;
cursor: auto;
Expand Down

0 comments on commit f44c368

Please sign in to comment.