From 326cf2d387ac71d7d10c8bc5a196ee516de2cf4b Mon Sep 17 00:00:00 2001 From: Em_Dev Date: Thu, 25 Jan 2024 17:08:40 +0100 Subject: [PATCH] fix: buggy behaviour of sidebar on mobile (#138) * style: Improved font size of the answers in the FAQ section of the landing page * Fixed the sidebar bug --- .../lib/components/Course/components/Navigation/index.svelte | 3 +-- apps/dashboard/src/lib/components/Navigation/app.svelte | 4 ++-- apps/dashboard/src/lib/components/Org/store.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/dashboard/src/lib/components/Course/components/Navigation/index.svelte b/apps/dashboard/src/lib/components/Course/components/Navigation/index.svelte index f3d8fc65..d6d07fb6 100644 --- a/apps/dashboard/src/lib/components/Course/components/Navigation/index.svelte +++ b/apps/dashboard/src/lib/components/Course/components/Navigation/index.svelte @@ -122,9 +122,8 @@ document.addEventListener('mousemove', dragSidebar); document.addEventListener('mouseup', stopDragging); document.addEventListener('mousemove', handleCursor); + toggleSidebar(false); } - - toggleSidebar(false); }); onDestroy(() => { diff --git a/apps/dashboard/src/lib/components/Navigation/app.svelte b/apps/dashboard/src/lib/components/Navigation/app.svelte index 38e88327..76272c47 100644 --- a/apps/dashboard/src/lib/components/Navigation/app.svelte +++ b/apps/dashboard/src/lib/components/Navigation/app.svelte @@ -35,8 +35,8 @@ $: coursesPath = $appStore.isOrgSite ? '/lms/mylearning' : isCoursePage - ? `${$currentOrgPath}/courses` - : $currentOrgPath; + ? `${$currentOrgPath}/courses` + : $currentOrgPath;