diff --git a/web/admin.html b/web/admin.html
index 69c76b8..55c576a 100644
--- a/web/admin.html
+++ b/web/admin.html
@@ -112,9 +112,14 @@
+
+
-
-
+
+
+
+
+
@@ -201,6 +206,7 @@
🔍 Metadata
+
@@ -510,6 +516,14 @@
Generate detailed database statistics report
+
+
@@ -953,6 +967,8 @@
modal.addEventListener("click", (e) => {
if (e.target === modal) {
modal.classList.add("hidden");
+ modal.classList.remove("flex");
+ document.body.style.overflow = "";
}
});
});
@@ -1290,11 +1306,13 @@
showModal(modalId) {
document.getElementById(modalId).classList.remove("hidden");
document.getElementById(modalId).classList.add("flex");
+ document.body.style.overflow = "hidden";
}
hideModal(modalId) {
document.getElementById(modalId).classList.add("hidden");
document.getElementById(modalId).classList.remove("flex");
+ document.body.style.overflow = "";
}
showSettingsModal() {
@@ -2375,6 +2393,7 @@
`;
document.body.appendChild(modal);
+ document.body.style.overflow = "hidden";
// Auto-select the text in the textarea
const textarea = modal.querySelector('textarea');
@@ -2385,8 +2404,14 @@
modal.addEventListener('click', (e) => {
if (e.target === modal) {
modal.remove();
+ document.body.style.overflow = "";
}
});
+
+ // Also handle the close button
+ modal.querySelector('button').addEventListener('click', () => {
+ document.body.style.overflow = "";
+ });
}
// Scan functionality