mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-08 01:32:54 +02:00
fix(paths): add backdrop between map picker and Contact Info modal
Raises the z-index of the map modal (1070) and its backdrop (1060) so the Contact Info modal behind is visually grayed out, making it clear which modal is active. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2069,6 +2069,12 @@ function openRepeaterMapPicker() {
|
||||
const modal = new bootstrap.Modal(modalEl);
|
||||
|
||||
const onShown = async function () {
|
||||
// Raise backdrop z-index so it covers the Contact Info modal behind
|
||||
const backdrops = document.querySelectorAll('.modal-backdrop');
|
||||
if (backdrops.length > 1) {
|
||||
backdrops[backdrops.length - 1].style.zIndex = '1060';
|
||||
}
|
||||
|
||||
// Init map once
|
||||
if (!_rptMap) {
|
||||
_rptMap = L.map('rptLeafletMap').setView([52.0, 19.0], 6);
|
||||
|
||||
@@ -182,6 +182,7 @@
|
||||
#rptLeafletMap { z-index: 1; }
|
||||
#rptLeafletMap .leaflet-top,
|
||||
#rptLeafletMap .leaflet-bottom { z-index: 1000; }
|
||||
/* Map modal backdrop stacks above Contact Info modal */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -407,7 +408,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Repeater Map Picker Modal -->
|
||||
<div class="modal fade" id="repeaterMapModal" tabindex="-1">
|
||||
<div class="modal fade" id="repeaterMapModal" tabindex="-1" style="z-index: 1070;">
|
||||
<div class="modal-dialog modal-lg modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header py-2">
|
||||
|
||||
Reference in New Issue
Block a user