From e2a2432822d2fd37868ce234d08e3d5d338a0803 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sun, 12 Dec 2021 00:27:24 -0700 Subject: [PATCH 1/2] errormodal width control --- scripts/modal/common/error.js | 1 + styles/modal.css | 2 ++ 2 files changed, 3 insertions(+) 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; From 2e4c3d3d23a06e37c47f56fa192a22039b4c538c Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sun, 12 Dec 2021 00:27:24 -0700 Subject: [PATCH 2/2] errormodal width control --- scripts/modal/common/error.js | 1 + styles/modal.css | 2 ++ 2 files changed, 3 insertions(+) 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;