diff --git a/scripts/modal/common/error.js b/scripts/modal/common/error.js index e2c7fd0..a63eb4b 100644 --- a/scripts/modal/common/error.js +++ b/scripts/modal/common/error.js @@ -5,6 +5,7 @@ module.exports = (name, text, after = () => {}) => { preModal('error-modal'); let modal = document.createElement('div'); modal.className = 'modal'; + modal.classList.add('error-modal'); modal.id = 'error-modal'; document.body.appendChild(modal); let title = document.createElement('h2'); diff --git a/styles/modal.css b/styles/modal.css index a9ae14a..798c043 100644 --- a/styles/modal.css +++ b/styles/modal.css @@ -60,6 +60,8 @@ z-index: 2; } +.error-modal {max-width: 45%;} + .modal-wrapper { margin: 0 0; padding: 0 0;