Persist sidebar across navigations to preserve scroll position

Move AppSidebar out of per-route view components into App.svelte so it
is never unmounted on navigation. This fixes the sidebar scroll position
resetting to the top whenever the user opens a repository or navigates
between Issues, Patches and the repo home view.

Also removes the redundant invoke<Config>("config") call from each repo
route loader — the value is now taken from sidebarData.config, which
loadSidebarData() already fetches.
This commit is contained in:
Rūdolfs Ošiņš
2026-03-23 22:51:59 -06:00
parent d0763b3ab0
commit 7b396ff72d
11 changed files with 88 additions and 93 deletions
+1 -1
View File
@@ -81,7 +81,7 @@
}
</style>
<Layout {sidebarData}>
<Layout>
<div class="page">
<div class="hero">
<img src="/flower.png" alt="" />