Fix showing Authorship and CommentComponent for review

Show either an `Authorship` component if no review comment is available
or a `CommentComponent` if there is a comment

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-05-29 09:30:54 +02:00
committed by Rūdolfs Ošiņš
parent 227424dbeb
commit 3465c92a7e
3 changed files with 96 additions and 72 deletions
+6 -2
View File
@@ -50,6 +50,10 @@
</script>
<style>
.comment {
background-color: var(--color-foreground-1);
border-radius: var(--border-radius);
}
.reply {
margin-left: 3rem;
margin-top: 1rem;
@@ -62,7 +66,7 @@
}
</style>
<div style:margin-top="1rem">
<div class="comment" style:margin-top="1rem">
<CommentComponent
{rawPath}
id={root.id}
@@ -74,7 +78,7 @@
on:toggleReply={toggleReply} />
</div>
{#each replies as reply}
<div class="reply">
<div class="comment reply">
<CommentComponent
{rawPath}
id={reply.id}