diff --git a/src/lib/components/lemmy/comment/Comments.svelte b/src/lib/components/lemmy/comment/Comments.svelte
index 01abf42b..396810b1 100644
--- a/src/lib/components/lemmy/comment/Comments.svelte
+++ b/src/lib/components/lemmy/comment/Comments.svelte
@@ -4,7 +4,7 @@
import { page } from '$app/stores'
import { onMount, setContext } from 'svelte'
import Button from '$lib/components/input/Button.svelte'
- import { ChevronDown, Icon } from 'svelte-hero-icons'
+ import { ChevronDown, Icon, Plus, PlusCircle } from 'svelte-hero-icons'
import { getClient } from '$lib/lemmy.js'
import type { CommentView, Post } from 'lemmy-js-client'
import { fly } from 'svelte/transition'
@@ -112,23 +112,29 @@
{/if}
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
-
{
+ node.loading = true
+ fetchChildren(node).then(() => (node.loading = false))
+ }}
>
-
+
{/if}
{/each}
diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte
index c0f304bf..3dce9b1e 100644
--- a/src/routes/post/[instance]/[id=integer]/+page.svelte
+++ b/src/routes/post/[instance]/[id=integer]/+page.svelte
@@ -24,6 +24,7 @@
import Link from '$lib/components/input/Link.svelte'
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import { userSettings } from '$lib/settings.js'
+ import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
export let data
@@ -94,7 +95,7 @@
type_: 'All',
post_id: post.post_view.post.id,
sort: commentSort,
- max_depth: 3,
+ max_depth: data.post.post_view.counts.comments > 100 ? 1 : 3,
})
}
@@ -170,7 +171,9 @@
/>
{/if}
{#if post.post_view.post.body}
-
+
{/if}
@@ -221,16 +224,19 @@
{/if}