Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 23x 1x 13x 2x | <template>
<div class="flex flex-col gap-6">
<CommentItem :comment="thread" :replyable @reply="$emit('reply', $event)" />
<ol
v-if="thread.replies.length"
class="ml-4 flex flex-col gap-6 border-l border-default pl-4 md:ml-4.5 md:pl-6"
>
<li v-for="reply in thread.replies" :key="reply.id">
<CommentItem :comment="reply" :replyable @reply="$emit('reply', $event)" />
</li>
</ol>
</div>
</template>
<script setup lang="ts">
interface Props {
thread: CommentThread;
replyable?: boolean;
}
defineProps<Props>();
defineEmits<{ reply: [comment: ReaderComment] }>();
</script>
|