design: increase spacing by screen size for comment trees

This commit is contained in:
James Xylight committed 2025-07-31 22:34:24 -07:00
1 parent 72f1502e83
commit bcfea91c63
3 files changed
+9 -7

No files matched your search

@@ -2,7 +2,7 @@
import VirtualList from '$lib/components/render/VirtualList.svelte'
import type { Post } from 'lemmy-js-client'
import type { CommentNodeI } from './comments.svelte'
import Comments from './CommentList.svelte'
import Comments from './CommentTree.svelte'
import { onMount } from 'svelte'
interface Props {
@@ -9,7 +9,7 @@
import { Button, toast } from 'mono-svelte'
import { ArrowDownCircle, Icon } from 'svelte-hero-icons'
import Comment from './Comment.svelte'
import Comments from './CommentList.svelte'
import Comments from './CommentTree.svelte'
import { buildCommentsTree, type CommentNodeI } from './comments.svelte'
interface Props {
@@ -93,10 +93,12 @@
bind:node={nodes[index]}
postId={post.id}
op={post.creator_id == node.comment_view.creator.id}
contentClass="{node.children.length > 0 ||
node.comment_view.counts.child_count > 0
? 'border-l'
: ''} ml-2.5 border-slate-200 dark:border-zinc-800 pl-2.5"
contentClass={[
(node.children.length > 0 ||
node.comment_view.counts.child_count > 0) &&
'border-l',
'ml-2.5 border-slate-200 dark:border-zinc-800 pl-3 sm:pl-4 lg:pl-5',
]}
bind:open={nodes[index].expanded}
>
{#if node.children?.length > 0}