diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index b9c5a16..71d4f4d 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -22,23 +22,9 @@ import type { detach } from "svelte/internal";
diff --git a/frontend/src/TaskPanel.svelte b/frontend/src/TaskPanel.svelte index 171f10b..b96149a 100644 --- a/frontend/src/TaskPanel.svelte +++ b/frontend/src/TaskPanel.svelte @@ -28,18 +28,33 @@ import TaskDisplay from "./TaskDisplay.svelte"; selectedTask = task heightClass = "full" } + + function close() { + heightClass = "collapsed" + window.setTimeout(() => window.scrollTo({ + top: 0, + left: 0, + behavior: 'smooth' + }), 100) + }