From 2efd4969e7a3f905475fb1fd2af9cd656453b7b5 Mon Sep 17 00:00:00 2001 From: Zias van Nes Date: Thu, 6 Nov 2025 12:47:35 +0100 Subject: [PATCH] add:enhance comments list with scroll, limit, and styling - Add maxComments, showCommentForm and isScrollable props to CommentsList to limit displayed comments, toggle the form, and enable a scrollable comments container. Show a "+N more comments" indicator when limited. - Adjust CommentForm and list styles (padding, background, flex behavior, responsive heights). Pass currentUserId and new props from FindPreview and FindCard where applicable. --- src/lib/components/CommentForm.svelte | 4 +- src/lib/components/CommentsList.svelte | 51 ++++++++++++++++++++++++-- src/lib/components/FindCard.svelte | 8 +++- src/lib/components/FindPreview.svelte | 41 ++++++++++++++++++++- src/routes/+page.svelte | 2 +- 5 files changed, 98 insertions(+), 8 deletions(-) diff --git a/src/lib/components/CommentForm.svelte b/src/lib/components/CommentForm.svelte index 19a2b7e..08faa7c 100644 --- a/src/lib/components/CommentForm.svelte +++ b/src/lib/components/CommentForm.svelte @@ -74,8 +74,10 @@ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2fe23a4..aae9dd4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -288,7 +288,7 @@ {/if} {#if selectedFind} - + {/if}