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
This commit is contained in:
Em_Dev
2024-01-25 17:08:40 +01:00
committed by GitHub
parent 0671e4b933
commit 326cf2d387
3 changed files with 4 additions and 5 deletions
@@ -122,9 +122,8 @@
document.addEventListener('mousemove', dragSidebar); document.addEventListener('mousemove', dragSidebar);
document.addEventListener('mouseup', stopDragging); document.addEventListener('mouseup', stopDragging);
document.addEventListener('mousemove', handleCursor); document.addEventListener('mousemove', handleCursor);
toggleSidebar(false);
} }
toggleSidebar(false);
}); });
onDestroy(() => { onDestroy(() => {
@@ -35,8 +35,8 @@
$: coursesPath = $appStore.isOrgSite $: coursesPath = $appStore.isOrgSite
? '/lms/mylearning' ? '/lms/mylearning'
: isCoursePage : isCoursePage
? `${$currentOrgPath}/courses` ? `${$currentOrgPath}/courses`
: $currentOrgPath; : $currentOrgPath;
</script> </script>
<nav <nav
@@ -5,5 +5,5 @@ export const newOrgModal = writable({
}); });
export const sideBar = writable({ export const sideBar = writable({
hidden: false hidden: true
}); });