feat-feed-indicator

This commit is contained in:
sevonj committed 2024-07-26 12:02:30 +03:00
1 parent 079d6f540c
commit b4b0d8d6b7
1 file changed
+11
@@ -36,6 +36,7 @@
import { t } from '$lib/translations' import { t } from '$lib/translations'
import InfiniteScroll from 'svelte-infinite-scroll' import InfiniteScroll from 'svelte-infinite-scroll'
import type { Readable } from 'svelte/motion' import type { Readable } from 'svelte/motion'
import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte';
export let posts: PostView[] export let posts: PostView[]
export let community: boolean = false export let community: boolean = false
@@ -274,6 +275,16 @@
<div class="w-24 h-8"></div> <div class="w-24 h-8"></div>
</div> </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} {/if}
<InfiniteScroll window threshold={1000} on:loadMore={loadMore} /> <InfiniteScroll window threshold={1000} on:loadMore={loadMore} />
{/if} {/if}