diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 1c725ca860..60eaa67a06 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -144,6 +144,9 @@ export let initialFile: { path: string; page?: number | null } | null = null; export let initialDirectory: string | null = null; export let onSelectDirectory: ((path: string) => void) | null = null; + // Rows are costly to draw. + let seen = false; + $: if (active) seen = true; let showCloneRepository = false; let gitAvailable = false; let cloneSupportVersion = 0; @@ -3087,7 +3090,7 @@ {/if} {#if !isSearching && !loading && !error && !uploading && !(effectiveMachineId && $machines === null)} - {#if visibleEntries.length > 0 || creatingFolder || creatingFile} + {#if seen && (visibleEntries.length > 0 || creatingFolder || creatingFile)}