Commit 5b15a845 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

UTILS.js - поправлен заголовок модалки во весь экран

parent 86db5220
......@@ -189,11 +189,24 @@ UTILS.getDialogFinishProcess = async (title, buttons, typeID, handler) => {
UTILS.getFullModalDialog = (title = '', body) => {
const dialog = $('<div class="uk-modal-full" uk-modal="stack: true;">');
const md = $('<div class="uk-modal-dialog" style="height: 100%; background: #d3d3d3;">');
const header = $('<div>', {class: 'uk-modal-header', style: 'width: 100%; height: 40px;'});
const titleHeader = $('<h3>');
titleHeader.text(title);
titleHeader.css({
'white-space': 'nowrap',
'overflow': 'hidden',
'text-overflow': 'ellipsis',
'width': 'calc(100% - 50px)'
});
header.append(titleHeader)
md.append(
`<button class="uk-modal-close-full uk-close-custom" type="button" uk-close></button>`,
`<div class="uk-modal-header" style="width: 100%; height: 40px;"><h3>${title}</h3></div>`,
body
header, body
);
dialog.append(md);
return dialog;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment