Skip to content

Commit e52678d

Browse files
committed
Enhance override modal functionality and visibility in UI
1 parent 75349dc commit e52678d

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

content/wardrive.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5262,6 +5262,7 @@ export async function onLoad() {
52625262
const modal = document.getElementById("overrideModal");
52635263
if (modal) {
52645264
modal.classList.remove("hidden");
5265+
modal.style.display = "flex";
52655266
}
52665267
});
52675268
}
@@ -5307,6 +5308,7 @@ export async function onLoad() {
53075308
overrideModalCancel.addEventListener("click", () => {
53085309
debugLog("[UI] Override canceled via custom modal");
53095310
overrideModal.classList.add("hidden");
5311+
overrideModal.style.display = "none";
53105312
});
53115313
}
53125314

@@ -5316,6 +5318,7 @@ export async function onLoad() {
53165318
if (e.target === overrideModal) {
53175319
debugLog("[UI] Override modal closed via backdrop click");
53185320
overrideModal.classList.add("hidden");
5321+
overrideModal.style.display = "none";
53195322
}
53205323
});
53215324
}

index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,16 @@ <h2 class="text-sm font-medium text-slate-300">Notes</h2>
350350

351351
</div>
352352
</main>
353+
354+
<!-- Load main script -->
355+
<script type="module" src="content/wardrive.js"></script>
356+
<script type="module">
357+
import { onLoad } from './content/wardrive.js';
358+
onLoad();
359+
</script>
353360

354361
<!-- Override Confirmation Modal -->
355-
<div id="overrideModal" class="hidden fixed inset-0 z-50 flex items-center justify-center p-4" style="background-color: rgba(0, 0, 0, 0.7);">
362+
<div id="overrideModal" class="hidden fixed inset-0 flex items-center justify-center p-4" style="background-color: rgba(0, 0, 0, 0.7); z-index: 9999;">
356363
<div class="bg-slate-800 border border-slate-700 rounded-xl shadow-2xl max-w-sm w-full transform transition-all">
357364
<div class="px-6 py-4 border-b border-slate-700">
358365
<h3 class="text-lg font-medium text-slate-200">Override Auto-Configuration?</h3>
@@ -371,12 +378,5 @@ <h3 class="text-lg font-medium text-slate-200">Override Auto-Configuration?</h3>
371378
</div>
372379
</div>
373380
</div>
374-
375-
<!-- Load main script -->
376-
<script type="module" src="content/wardrive.js"></script>
377-
<script type="module">
378-
import { onLoad } from './content/wardrive.js';
379-
onLoad();
380-
</script>
381381
</body>
382382
</html>

0 commit comments

Comments
 (0)