diff --git a/src/widgets/SampleList/ui/SampleList/SampleList.svelte b/src/widgets/SampleList/ui/SampleList/SampleList.svelte index 112f3fb..9ffad72 100644 --- a/src/widgets/SampleList/ui/SampleList/SampleList.svelte +++ b/src/widgets/SampleList/ui/SampleList/SampleList.svelte @@ -50,11 +50,9 @@ const displayRange = $derived.by(() => { const loadedCount = Math.min(offset + limit, total); return `Showing ${loadedCount} of ${total} fonts`; }); - -{#if unifiedFontStore.isFetching || unifiedFontStore.isLoading} - (Loading...) -{/if} +const isLoading = $derived(unifiedFontStore.isFetching || unifiedFontStore.isLoading); + { itemHeight={280} useWindowScroll={true} weight={controlManager.weight} + {isLoading} > - {#snippet children({ item: font, isFullyVisible, isPartiallyVisible, proximity, index })} + {#snippet children({ + item: font, + isFullyVisible, + isPartiallyVisible, + proximity, + index, +})}