improve initial flash
This commit is contained in:
parent
67e898e37b
commit
7839072299
2 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@
|
||||||
const mounted = new IsMounted();
|
const mounted = new IsMounted();
|
||||||
|
|
||||||
const notAtBottom = new Debounced(
|
const notAtBottom = new Debounced(
|
||||||
() => !scrollState.arrived.bottom,
|
() => (mounted.current ? !scrollState.arrived.bottom : false),
|
||||||
() => (mounted.current ? 250 : 0)
|
() => (mounted.current ? 250 : 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else if !openRouterKeyQuery.data}
|
{:else if !openRouterKeyQuery.data && !openRouterKeyQuery.isLoading}
|
||||||
<div class="w-full p-2" in:scale={{ duration: 500, start: 0.9 }}>
|
<div class="w-full p-2" in:scale={{ duration: 500, start: 0.9 }}>
|
||||||
<h2 class="text-left font-serif text-3xl font-semibold">
|
<h2 class="text-left font-serif text-3xl font-semibold">
|
||||||
Hey there, <span class={{ 'blur-sm': settings.data?.privacy_mode }}
|
Hey there, <span class={{ 'blur-sm': settings.data?.privacy_mode }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue