fix: inbox comments closed by default

This commit is contained in:
James Xylight committed 2025-02-04 06:41:49 -08:00
1 parent 73a4c16322
commit 4f9219596a
2 files changed
+8 -5

No files matched your search

@@ -15,6 +15,7 @@
community?: boolean community?: boolean
meta?: boolean meta?: boolean
class?: string class?: string
commentClass?: string
[key: string]: any [key: string]: any
} }
@@ -24,14 +25,14 @@
community = false, community = false,
meta = true, meta = true,
class: clazz = '', class: clazz = '',
commentClass = '',
...rest ...rest
}: Props = $props() }: Props = $props()
</script> </script>
<Material <Material
class="flex flex-col flex-1 {view != 'card' class="flex flex-col flex-1 !bg-transparent !border-0 rounded-none
? '!bg-transparent !border-0 rounded-none' {view == 'compact' ? 'py-4' : 'py-5'} {clazz}"
: 'p-5'} {view == 'compact' ? 'py-4' : 'py-5'} {clazz}"
color="distinct" color="distinct"
padding="none" padding="none"
> >
@@ -71,10 +72,11 @@
<div class="list-none"> <div class="list-none">
<Comment <Comment
postId={comment.post.id} postId={comment.post.id}
node={{ children: [], comment_view: comment, depth: 1 }} node={{ children: [], comment_view: comment, depth: 1, expanded: true }}
replying={false} replying={false}
{meta} {meta}
{...rest} {...rest}
class={commentClass}
/> />
</div> </div>
</Material> </Material>
+2 -1
View File
@@ -184,7 +184,8 @@
community={false} community={false}
view="cozy" view="cozy"
meta={false} meta={false}
class="pt-0 pb-0" commentClass="!pt-0 pb-0"
class="pt-0"
/> />
{:else} {:else}
<PrivateMessage message={item.item} meta={false} /> <PrivateMessage message={item.item} meta={false} />