From c0702d645caef7e2ceb57f98443af2f932b6f831 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 7 Jul 2023 18:02:50 -0700 Subject: [PATCH] feat: Add OP indicator --- src/lib/components/lemmy/comment/Comment.svelte | 11 ++++++++--- src/lib/components/lemmy/comment/Comments.svelte | 7 ++++++- src/lib/components/markdown/Markdown.svelte | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index 5c22cbd5..67818e08 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -19,8 +19,8 @@ import Markdown from '$lib/components/markdown/Markdown.svelte' export let node: CommentNodeI - export let postId: number + export let op: boolean = false export let open = true export let replying = false @@ -83,7 +83,7 @@ class="py-2 {$page.url.hash == `#${node.comment_view.comment.id}` ? 'bg-slate-200 dark:bg-zinc-800' : ''} {node.depth == 0 - ? 'border-b border-black/10 dark:border-white/10' + ? 'border-b border-slate-200 dark:border-white/10' : ''}" id="#{node.comment_view.comment.id.toString()}" > @@ -91,7 +91,12 @@ - + + + {#if op} + OP + {/if} + diff --git a/src/lib/components/lemmy/comment/Comments.svelte b/src/lib/components/lemmy/comment/Comments.svelte index 145919ae..df5951bc 100644 --- a/src/lib/components/lemmy/comment/Comments.svelte +++ b/src/lib/components/lemmy/comment/Comments.svelte @@ -58,7 +58,12 @@ : 'ml-2.5 mt-2 pl-2.5 border-l-2 border-black/10 dark:border-white/10'} > {#each nodes.slice(0, maxComments) as node} - + {#if node.children?.length > 0} {/if} diff --git a/src/lib/components/markdown/Markdown.svelte b/src/lib/components/markdown/Markdown.svelte index 61c6d68d..7bcd0a90 100644 --- a/src/lib/components/markdown/Markdown.svelte +++ b/src/lib/components/markdown/Markdown.svelte @@ -10,7 +10,7 @@ export let source: string | undefined -
+