feat-feed-indicator
This commit is contained in:
1 parent
079d6f540c
commit
b4b0d8d6b7
1 file changed
+11
@@ -36,6 +36,7 @@
|
||||
import { t } from '$lib/translations'
|
||||
import InfiniteScroll from 'svelte-infinite-scroll'
|
||||
import type { Readable } from 'svelte/motion'
|
||||
import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte';
|
||||
|
||||
export let posts: PostView[]
|
||||
export let community: boolean = false
|
||||
@@ -274,6 +275,16 @@
|
||||
<div class="w-24 h-8"></div>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<div style="border-top-width: 0">
|
||||
<EndPlaceholder>
|
||||
{#if feedData.community_name}
|
||||
You have reached the end of {feedData.community_name}.
|
||||
{:else}
|
||||
You have reached the end of the feed.
|
||||
{/if}
|
||||
</EndPlaceholder>
|
||||
</div>
|
||||
{/if}
|
||||
<InfiniteScroll window threshold={1000} on:loadMore={loadMore} />
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user