fix: enlarge ONLYOFFICE editor modal to 95vw x 85vh

This commit is contained in:
root
2026-07-16 11:07:04 +00:00
parent df08ee7879
commit 677252c807
2 changed files with 5 additions and 4 deletions

View File

@@ -661,8 +661,9 @@ function showModal(body, title, size = '') {
<h2>${title}</h2>
<button class="modal-close" onclick="closeModal()">&times;</button>
</div>` : '';
const sizeStyle = size === 'xlarge' ? 'max-width:1400px;width:95vw' : size === 'large' ? 'max-width:1000px' : '';
overlay.innerHTML = `
<div class="modal" style="${size === 'large' ? 'max-width:1000px' : ''}">
<div class="modal" style="${sizeStyle}">
${headerHTML}
<div>${body}</div>
</div>