Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/views/SignPDF/_partials/Sign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
<NcDialog v-if="signMethodsStore.modal.clickToSign"
:no-close="loading"
:name="t('libresign', 'Confirm')"
size="small"
dialog-classes="libresign-dialog"
@closing="signMethodsStore.closeModal('clickToSign')">
<NcNoteCard v-for="(error, index) in errors"
:key="index"
Expand Down Expand Up @@ -90,6 +92,8 @@
<NcDialog v-if="signMethodsStore.modal.password"
:no-close="loading"
:name="t('libresign', 'Confirm your signature')"
size="small"
dialog-classes="libresign-dialog"
@closing="onCloseConfirmPassword">
<NcNoteCard v-for="(error, index) in errors"
:key="index"
Expand Down Expand Up @@ -523,3 +527,27 @@ export default {
}
}
</style>

<style lang="scss">
/* Targeted override: keep small dialog compact on guest/mobile */
@media only screen and ((max-width: 512px) or (max-height: 400px)) {
.libresign-dialog .modal-wrapper--small > .modal-container {
width: fit-content !important;
height: unset !important;
max-height: 90% !important;
position: relative !important;
top: unset !important;
border-radius: var(--border-radius-large) !important;
}

/* Apply same rule to NcDialog's default wrapper class */
.dialog__modal .modal-wrapper--small > .modal-container {
width: fit-content !important;
height: unset !important;
max-height: 90% !important;
position: relative !important;
top: unset !important;
border-radius: var(--border-radius-large) !important;
}
}
</style>
Loading