fix: use postMeta for saved comments
This commit is contained in:
1 parent
c1433a8887
commit
76884eba7c
1 file changed
+11
-13
@@ -8,6 +8,7 @@
|
|||||||
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
|
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
|
||||||
import { fly } from 'svelte/transition'
|
import { fly } from 'svelte/transition'
|
||||||
import Button from '$lib/components/input/Button.svelte'
|
import Button from '$lib/components/input/Button.svelte'
|
||||||
|
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
|
||||||
|
|
||||||
export let data
|
export let data
|
||||||
|
|
||||||
@@ -29,19 +30,13 @@
|
|||||||
{#each data.data as item, index}
|
{#each data.data as item, index}
|
||||||
<div in:fly={{ opacity: 0, y: -4, delay: index * 50 }}>
|
<div in:fly={{ opacity: 0, y: -4, delay: index * 50 }}>
|
||||||
{#if isComment(item)}
|
{#if isComment(item)}
|
||||||
<Card class="flex flex-col bg-white rounded-md p-4 flex-1">
|
<Card class="flex flex-col bg-white rounded-md p-5 flex-1">
|
||||||
<div class="flex flex-row justify-between items-center">
|
<div class="flex flex-row items-center">
|
||||||
<div class="flex flex-col gap-1">
|
<PostMeta
|
||||||
<span class="text-xs dark:text-slate-400 text-zinc-600">
|
title={item.post.name}
|
||||||
<CommunityLink avatar community={item.community} />
|
id={item.post.id}
|
||||||
</span>
|
published={new Date(item.post.published)}
|
||||||
<span class="flex flex-row items-center text-sm font-bold">
|
/>
|
||||||
{item.post.name}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<Button href="/post/{item.post.id}#{item.comment.id}">
|
|
||||||
Jump
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="list-none">
|
<div class="list-none">
|
||||||
<Comment
|
<Comment
|
||||||
@@ -50,6 +45,9 @@
|
|||||||
replying={false}
|
replying={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<Button class="ml-auto" href="/comment/{item.comment.id}">
|
||||||
|
Jump
|
||||||
|
</Button>
|
||||||
</Card>
|
</Card>
|
||||||
{:else}
|
{:else}
|
||||||
<Post post={item} />
|
<Post post={item} />
|
||||||
|
|||||||
Reference in new issue
Block a user