From 04e180ae3f0a3c4afc2e717642aa95a25d2c1b73 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 9 Feb 2025 11:22:55 +0100 Subject: [PATCH] Creada pagina lateral para las configuraciones nivel 1 y 2 --- templates/index.html | 148 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 117 insertions(+), 31 deletions(-) diff --git a/templates/index.html b/templates/index.html index d8dd941..f469011 100644 --- a/templates/index.html +++ b/templates/index.html @@ -603,6 +603,11 @@ await initWorkingDirectory(); await loadConfigs(); }); + + // Close sidebar on small screens when changing groups + if (window.innerWidth < 768) { + toggleSidebar(); + } } catch (error) { console.error('Error during initialization:', error); } @@ -640,27 +645,125 @@ const description = option.getAttribute('data-description'); document.getElementById('group-description').textContent = description; } + + function toggleSidebar() { + const sidebar = document.querySelector('.sidebar'); + const overlay = document.querySelector('.overlay'); + const schemaEditor = document.getElementById('schema-editor'); + + // No cerrar sidebar si el modal está abierto + if (!schemaEditor.classList.contains('hidden')) { + return; + } + + sidebar.classList.toggle('open'); + overlay.classList.toggle('show'); + } + -
- -
-
-

Configuración General (Nivel 1)

- +
+ + +
+