Fix: Ausweis als Fullscreen-Modal statt neuem Tab, UI.modal size-Parameter
This commit is contained in:
parent
1af9bc0f7e
commit
cb8ac8cffd
5 changed files with 38 additions and 5 deletions
|
|
@ -55,11 +55,11 @@ const UI = (() => {
|
|||
const modal = (() => {
|
||||
let _current = null;
|
||||
|
||||
function open({ title, body, footer, onClose } = {}) {
|
||||
function open({ title, body, footer, onClose, size } = {}) {
|
||||
close(); // vorheriges schließen
|
||||
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'modal-overlay';
|
||||
overlay.className = 'modal-overlay' + (size ? ` modal-overlay--${size}` : '');
|
||||
overlay.innerHTML = `
|
||||
<div class="modal" role="dialog" aria-modal="true">
|
||||
<div class="modal-handle"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue