diff --git a/src/components/ChannelGrid.svelte b/src/components/ChannelGrid.svelte index 88e3b72a4..5670d2834 100644 --- a/src/components/ChannelGrid.svelte +++ b/src/components/ChannelGrid.svelte @@ -2,22 +2,30 @@ import ChannelItem from './ChannelItem.svelte' export let channels = [] + + let limit = 100 + + $: channelsDisplay = channels.slice(0, limit) + + function showMore() { + limit += 100 + } -
+
-
+
-
+
Name
ID
@@ -26,12 +34,18 @@
-
- {#each channels as channel (channel.id)} +
+ {#each channelsDisplay as channel (channel.id)} {/each}
+ {#if channelsDisplay.length < channels.length} + + {/if}
diff --git a/src/components/ChannelItem.svelte b/src/components/ChannelItem.svelte index 6e56a23b8..dd7efe823 100644 --- a/src/components/ChannelItem.svelte +++ b/src/components/ChannelItem.svelte @@ -6,7 +6,7 @@ import Checkbox from './Checkbox.svelte' import BlockedBadge from './BlockedBadge.svelte' import ClosedBadge from './ClosedBadge.svelte' - import { downloadMode, selected, query } from '~/store' + import { downloadMode, selected } from '~/store' import { fade } from 'svelte/transition' export let channel @@ -81,7 +81,7 @@
-
+
{#if channel.logo}
-
+
@@ -102,7 +102,7 @@ on:click|preventDefault={showChannelData} href="/channels/{country}/{name}" tabindex="0" - class="font-normal text-gray-600 dark:text-white hover:underline hover:text-blue-500 line-clamp-1" + class="font-normal text-gray-600 dark:text-white hover:underline hover:text-blue-500 truncate whitespace-nowrap" title={channel.displayName} > {channel.displayName} @@ -127,7 +127,7 @@
-
+
-
+
{#if guides.length}