Skip to content

Commit

Permalink
fix: add unsaved changes
Browse files Browse the repository at this point in the history
  • Loading branch information
usantos-at-wiris committed Nov 26, 2024
1 parent c4c7c73 commit e9e9074
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 73 deletions.
8 changes: 4 additions & 4 deletions packages/devkit/src/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1442,9 +1442,9 @@ export default class ModalDialog {
handleOpenedIosSoftkeyboard() {
if (!this.iosSoftkeyboardOpened && this.iosDivHeight != null && this.iosDivHeight === `100${this.iosMeasureUnit}`) {
if (this.portraitMode()) {
this.setContainerHeight(`63${this.iosMeasureUnit}`);
this.setContainerHeight(`60${this.iosMeasureUnit}`);
} else {
this.setContainerHeight(`40${this.iosMeasureUnit}`);
this.setContainerHeight(`35${this.iosMeasureUnit}`);
}
}
this.iosSoftkeyboardOpened = true;
Expand All @@ -1464,9 +1464,9 @@ export default class ModalDialog {
orientationChangeIosSoftkeyboard() {
if (this.iosSoftkeyboardOpened) {
if (this.portraitMode()) {
this.setContainerHeight(`63${this.iosMeasureUnit}`);
this.setContainerHeight(`65${this.iosMeasureUnit}`);
} else {
this.setContainerHeight(`40${this.iosMeasureUnit}`);
this.setContainerHeight(`45${this.iosMeasureUnit}`);
}
} else {
this.setContainerHeight(`100${this.iosMeasureUnit}`);
Expand Down
84 changes: 15 additions & 69 deletions packages/devkit/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,21 @@

.wrs_modal_dialogContainer.wrs_modal_ios,
.wrs_modal_dialogContainer.wrs_modal_android {
margin: 0 !important;
position: fixed !important;
width: 100vw !important;
height: calc(100vh - env(safe-area-inset-bottom)) !important;
overflow: hidden !important;
top: env(safe-area-inset-top) !important;
left: env(safe-area-inset-left) !important;
right: env(safe-area-inset-right) !important;
bottom: env(safe-area-inset-bottom) !important;
transform: none !important;
box-sizing: border-box !important;
padding-bottom: env(safe-area-inset-bottom) !important;
margin: 0;
position: fixed;
height: calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top)) !important;

overflow: hidden;
top: env(safe-area-inset-top);
left: env(safe-area-inset-left);
right: env(safe-area-inset-right);
bottom: env(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom) !important;

transform: none;
box-sizing: border-box;
display: flex;
flex-direction: column;
}

/* Class that exists but hasn't got css properties defined
Expand All @@ -185,22 +188,13 @@
flex-grow: 1;
} */

.wrs_content_container.wrs_modal_android > div:first-child {
flex-grow: 1;
}

.wrs_content_container.wrs_modal_ios > div:first-child {
flex-grow: 1;
}

.wrs_content_container.wrs_modal_desktop > div:first-child {
flex-grow: 1;
}

.wrs_modal_wrapper.wrs_modal_android,
.wrs_modal_wrapper.wrs_modal_ios {
margin: 0.5rem !important;
height: -webkit-fill-available !important;
display: flex;
}

Expand All @@ -217,44 +211,6 @@
flex-direction: column;
}

.wrs_virtual_keyboard {
height: 100%;
width: 100%;
top: 0;
left: 50%;
transform: translate(-50%, 0%);
}

@media all and (orientation: portrait) {
.wrs_modal_dialogContainer.wrs_modal_mobile {
width: 100vmin;
height: 100vmin;
margin: auto;
border-width: 0;
}

.wrs_modal_wrapper.wrs_modal_mobile {
width: 100vmin;
height: 100vmin;
margin: auto;
}
}

@media all and (orientation: landscape) {
.wrs_modal_dialogContainer.wrs_modal_mobile {
width: 100vmin;
height: 100vmin;
margin: auto;
border-width: 0;
}

.wrs_modal_wrapper.wrs_modal_mobile {
width: 100vmin;
height: 100vmin;
margin: auto;
}
}

.wrs_modal_dialogContainer.wrs_modal_badStock {
width: 100%;
height: 280px;
Expand Down Expand Up @@ -374,10 +330,6 @@
float: left;
}

.wrs_modal_buttons_container.wrs_modalAndroid {
padding-left: 6px;
}

.wrs_modal_buttons_container.wrs_modalDesktop {
padding-left: 0;
}
Expand All @@ -397,12 +349,6 @@
display: none;
}

@media only screen and (max-device-width: 480px) and (orientation: portrait) {
#wrs_modal_wrapper {
width: 140%;
}
}

.wrs_popupmessage_overlay_envolture {
display: none;
width: 100%;
Expand Down

0 comments on commit e9e9074

Please sign in to comment.