We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1bd6e commit 766d02aCopy full SHA for 766d02a
src/routes/[pid=pid]/[org]/[repo]/[id=number]/PageRenderer.svelte
@@ -298,10 +298,12 @@
298
secondaryLabel="{info.comments} comment{info.comments > 1 ? 's' : ''}"
299
>
300
{#each comments as comment, i (comment.id)}
301
- {#if i > 0}
+ {@const isAnswer =
302
+ "parent_id" in comment && comment.parent_id ? comment.parent_id !== info.id : false}
303
+ {#if !isAnswer && i > 0}
304
<Separator class="my-2 h-1" />
305
{/if}
- <div>
306
+ <div class={[isAnswer && "border-l-4 ml-4 pl-2"]}>
307
<!-- Author -->
308
<div
309
class="inline-flex w-full flex-col gap-1 border-b px-4 py-2 xs:flex-row xs:items-center xs:gap-0"
0 commit comments