From 9785c3b0b2de6498658213be365eab23f9a783e2 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Tue, 3 Jun 2025 17:55:44 -0700 Subject: [PATCH] feat(admin): add sticky search controls and prune option --- web/admin.html | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) 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