diff --git a/module/webui/scripts/menu_option.js b/module/webui/scripts/menu_option.js
index 9055f8c..3dbc3d1 100644
--- a/module/webui/scripts/menu_option.js
+++ b/module/webui/scripts/menu_option.js
@@ -234,43 +234,7 @@ document.getElementById("validkb").addEventListener("click", async () => {
});
});
-// Add file selector dialog elements dynamically
-const fileSelector = document.createElement('div');
-fileSelector.className = 'file-selector-overlay';
-fileSelector.innerHTML = `
-
-`;
-document.body.appendChild(fileSelector);
-
-// Add styles for animations
-const style = document.createElement('style');
-style.textContent = `
- .file-selector-overlay {
- transition: opacity 0.3s ease;
- opacity: 0;
- }
- .file-selector-overlay.visible {
- opacity: 1;
- }
- .file-list {
- transition: transform 0.3s ease, opacity 0.3s ease;
- }
- .file-list.switching {
- transform: scale(0.95);
- opacity: 0;
- }
-`;
-document.head.appendChild(style);
-
+const fileSelector = document.querySelector('.file-selector-overlay');
let currentPath = '/storage/emulated/0/Download';
function updateCurrentPath() {
@@ -309,7 +273,7 @@ async function listFiles(path, skipAnimation = false) {
// Add back button item if not in root directory
if (currentPath !== '/storage/emulated/0') {
const backItem = document.createElement('div');
- backItem.className = 'file-item';
+ backItem.className = 'file-item ripple-element';
backItem.innerHTML = `