diff --git a/src/lib/components/layout/navigation/Navbar.svelte b/src/lib/components/layout/navigation/Navbar.svelte index 78496de..f570745 100644 --- a/src/lib/components/layout/navigation/Navbar.svelte +++ b/src/lib/components/layout/navigation/Navbar.svelte @@ -19,7 +19,7 @@ -
+
{#each $navEntries as navTarget} {/each} diff --git a/src/lib/components/panes/Panes.svelte b/src/lib/components/panes/Panes.svelte index 96e64d3..76e1f75 100644 --- a/src/lib/components/panes/Panes.svelte +++ b/src/lib/components/panes/Panes.svelte @@ -50,8 +50,11 @@ isDragging = false; if (percentage >= 70) setShowSideBar(false); - percentage = 0; - setPercentages(percentage); + const intervalId = setInterval(() => { + percentage -= 2 + setPercentages(percentage); + if (percentage <= 0) clearInterval(intervalId); + }, 2); }; document.addEventListener('mousemove', handleMouseMoveOrTouchMove); @@ -89,7 +92,7 @@ class:grid-cols-1={!showSidebar} style:--w={`${position}px`} > -
+