From 78390722999d8e7a40c74390dfa9cc5f1f8d4740 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lopes" <26071571+TGlide@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:18:38 +0100 Subject: [PATCH] improve initial flash --- src/routes/chat/+layout.svelte | 2 +- src/routes/chat/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/chat/+layout.svelte b/src/routes/chat/+layout.svelte index 645ade7..8afdb11 100644 --- a/src/routes/chat/+layout.svelte +++ b/src/routes/chat/+layout.svelte @@ -361,7 +361,7 @@ const mounted = new IsMounted(); const notAtBottom = new Debounced( - () => !scrollState.arrived.bottom, + () => (mounted.current ? !scrollState.arrived.bottom : false), () => (mounted.current ? 250 : 0) ); diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index 4e5daef..d0a74f8 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -127,7 +127,7 @@ {/if} - {:else if !openRouterKeyQuery.data} + {:else if !openRouterKeyQuery.data && !openRouterKeyQuery.isLoading}

Hey there,