errormodal width control

modals^2
Kit Kasune 3 years ago
parent c65856efa6
commit e2a2432822
  1. 1
      scripts/modal/common/error.js
  2. 2
      styles/modal.css

@ -5,6 +5,7 @@ module.exports = (name, text, after = () => {}) => {
preModal('error-modal'); preModal('error-modal');
let modal = document.createElement('div'); let modal = document.createElement('div');
modal.className = 'modal'; modal.className = 'modal';
modal.classList.add('error-modal');
modal.id = 'error-modal'; modal.id = 'error-modal';
document.body.appendChild(modal); document.body.appendChild(modal);
let title = document.createElement('h2'); let title = document.createElement('h2');

@ -60,6 +60,8 @@
z-index: 2; z-index: 2;
} }
.error-modal {max-width: 45%;}
.modal-wrapper { .modal-wrapper {
margin: 0 0; margin: 0 0;
padding: 0 0; padding: 0 0;

Loading…
Cancel
Save