다이얼로그 창 위치를 화면 중앙으로 설정할 수 있도록 수정함

main
이범준 8 months ago
parent 50bf635149
commit 26aafff91a

@ -4760,11 +4760,13 @@ ul.nav-tabs > li.nav-item{
max-width: var(--bs-modal-width); max-width: var(--bs-modal-width);
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
margin-bottom: 100%;
margin-top: 30px;
pointer-events: none; pointer-events: none;
} }
.modal-dialog:not(.modal-dialog-centered) {
margin-top: 30px;
}
.modal-sm { min-width: 250px; --bs-modal-width: 310px; } .modal-sm { min-width: 250px; --bs-modal-width: 310px; }
.modal-md { min-width: 400px; --bs-modal-width: 500px; } .modal-md { min-width: 400px; --bs-modal-width: 500px; }
.modal-lg { min-width: 800px; --bs-modal-width: 1000px; } .modal-lg { min-width: 800px; --bs-modal-width: 1000px; }

@ -1,4 +1,4 @@
<div id="{id}" class="modal fade" tabindex="-1" aria-hidden="true" style="height:auto;" data-bs-backdrop="static"> <div id="{id}" class="modal fade" tabindex="-1" aria-hidden="true" data-bs-backdrop="static">
<div class="modal-dialog{size}" role="document"> <div class="modal-dialog{size}" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header bg-label-primary"> <div class="modal-header bg-label-primary">

@ -17,6 +17,7 @@ async function dialog2(msg, type, buttons){
content = container.replace(/{content}/g, msg); content = container.replace(/{content}/g, msg);
var backdropID = dlgId + "-backdrop"; var backdropID = dlgId + "-backdrop";
var tmpl = template.replace(/{id}/g, dlgId).replace(/{title}/g, "").replace(/{size}/, "").replace("",""); var tmpl = template.replace(/{id}/g, dlgId).replace(/{title}/g, "").replace(/{size}/, "").replace("","");
tmpl = tmpl.replace("modal-dialog", "modal-dialog-centered modal-dialog");
tmpl = tmpl.replace("data-bs-backdrop=\"static\"", "data-bs-backdrop=\"static\" data-bs-keyboard=\"false\""); tmpl = tmpl.replace("data-bs-backdrop=\"static\"", "data-bs-backdrop=\"static\" data-bs-keyboard=\"false\"");
tmpl = tmpl.replace("text-end hidden","text-end"); tmpl = tmpl.replace("text-end hidden","text-end");
tmpl = tmpl.replace("btn-primary","btn-primary btn-ok"); tmpl = tmpl.replace("btn-primary","btn-primary btn-ok");

Loading…
Cancel
Save