From b3477e0365ee88eedd2a42ac2b087d213f963046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 9 Oct 2026 10:11:44 +0200 Subject: [PATCH] Fix file tree folders flickering on file select Since the browsed file lives in the route, every click reloads the route and open folders re-rendered their contents, briefly collapsing them. Folders now load their entries once and the tree is rebuilt only when the commit changes. --- src/components/FileTreeFolder.svelte | 64 ++++++++++++++-------------- src/views/repo/RepoHome.svelte | 12 +++--- tests/e2e/repo/source.spec.ts | 38 +++++++++++++++++ 3 files changed, 78 insertions(+), 36 deletions(-) diff --git a/src/components/FileTreeFolder.svelte b/src/components/FileTreeFolder.svelte index 229b055a7..c92fe64dd 100644 --- a/src/components/FileTreeFolder.svelte +++ b/src/components/FileTreeFolder.svelte @@ -1,6 +1,8 @@