From bb4087c4d91c14e44322bc1b78ce454cd20d1329 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Sat, 27 Apr 2024 19:14:43 +1200 Subject: [PATCH] Allow closing comments --- .../src/routes/watch/[slug]/+page.svelte | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/materialious/src/routes/watch/[slug]/+page.svelte b/materialious/src/routes/watch/[slug]/+page.svelte index a9235032..bfe689bf 100644 --- a/materialious/src/routes/watch/[slug]/+page.svelte +++ b/materialious/src/routes/watch/[slug]/+page.svelte @@ -576,15 +576,28 @@ -
{#if comments && comments.comments.length > 0} -
{numberWithCommas(comments.commentCount)} comments
- {#each comments.comments as comment} - - {/each} - {#if comments.continuation} - - {/if} +
+
+ + + + +
+ +
+ {#each comments.comments as comment} + + {/each} + {#if comments.continuation} + + {/if} +
+
+
{:else}
{$_('player.unableToLoadComments')}
{/if}