From 55f5a663fe57d837f07df6982568d2d93662bc05 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Thu, 4 Dec 2025 20:18:21 +0100 Subject: [PATCH] improving main menu for mobile devices Signed-off-by: Stephan Richter --- frontend/src/Components/Menu.svelte | 7 ++- .../main/resources/web/css/default-color.css | 7 +++ web/src/main/resources/web/css/default.css | 44 +++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/Menu.svelte b/frontend/src/Components/Menu.svelte index 36ec215..5435f38 100644 --- a/frontend/src/Components/Menu.svelte +++ b/frontend/src/Components/Menu.svelte @@ -10,6 +10,7 @@ import TimeRecorder from './TimeRecorder.svelte'; let key = $state(null); const router = useTinyRouter(); const modules = $state([]); +let expand = $state(false); async function fetchModules(){ const url = `${location.protocol}//${location.host.replace('5173','8080')}/legacy/user/modules`; @@ -27,6 +28,7 @@ async function fetchModules(){ function onclick(e){ e.preventDefault(); + expand = false; let href = e.target.getAttribute('href'); if (href) router.navigate(href); return false; @@ -47,11 +49,12 @@ onMount(fetchModules); } -