diff --git a/src/components/ChannelGrid.svelte b/src/components/ChannelGrid.svelte index 88e3b72a4..2fbe238c9 100644 --- a/src/components/ChannelGrid.svelte +++ b/src/components/ChannelGrid.svelte @@ -2,11 +2,19 @@ import ChannelItem from './ChannelItem.svelte' export let channels = [] + + let limit = 100 + + $: channelsDisplay = channels.slice(0, limit) + + function showMore() { + limit += 100 + }
-
+
@@ -27,9 +35,15 @@
- {#each channels as channel (channel.id)} + {#each channelsDisplay as channel (channel.id)} {/each} + {#if channelsDisplay.length < channels.length} + + {/if}