Mobile: Insert comment layout is too narrow and doesn't occupy full height

Change-Id: Ibb6beff5659f5240ff2b49897e8a491f08933691
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
This commit is contained in:
codewithvk 2023-11-24 20:34:24 +05:30 committed by pedropintosilva
parent 189f1866e2
commit 9179f0d2f3
2 changed files with 14 additions and 3 deletions

View file

@ -681,15 +681,22 @@ td[id^='tb_spreadsheet-toolbar_item']:focus table.w2ui-button div.w2ui-icon, td[
/* busy popup */
#mobile-wizard.popup:not(.snackbar) {
border-radius: 16px 16px 0 0;
position: fixed;
top: 0;
left: 0;
height: 100vh !important;
}
#mobile-wizard.popup #mobile-wizard-content,
#mobile-wizard.popup .mobile-wizard-content {
display: flex;
align-items: center;
align-items: start;
justify-content: center;
flex-wrap: wrap;
}
#mobile-wizard.snackbar #mobile-wizard-content,
#mobile-wizard.snackbar .mobile-wizard-content {
align-items: center;
}
#mobile-wizard.popup.potrait #mobile-wizard-content {
flex-direction: column;
}

View file

@ -473,7 +473,11 @@ export class CommentSection extends CanvasSectionObject {
$(contentDate).text(isNaN(d.getTime()) ? comment.dateTime: d.toLocaleDateString((<any>String).locale, <any>dateOptions));
}
var parent = document.getElementById('new-annotation-dialog').parentElement;
var newAnnotationDialog = document.getElementById('new-annotation-dialog');
$(newAnnotationDialog).css('width', '100%');
var dialogInput = newAnnotationDialog.children[0];
$(dialogInput).css('height', '30vh');
var parent = newAnnotationDialog.parentElement;
parent.insertBefore(author, parent.childNodes[0]);
document.getElementById('input-modal-input').focus();
}