feat: Render notes with replies in a thread view

This commit is contained in:
Jesse Wierzbinski 2024-12-29 14:51:21 +01:00
parent 977defc169
commit 0a977468d0
No known key found for this signature in database
4 changed files with 35 additions and 8 deletions

View file

@ -1,7 +1,10 @@
<template>
<div v-if="loaded" class="mx-auto max-w-2xl w-full pb-72 *:rounded space-y-4 *:border">
<Note v-for="note of context?.ancestors" :note="note" />
<Note v-if="note" :note="note" />
<div>
<Note v-for="note, index of context?.ancestors" :note="note" :hide-actions="true"
:top-avatar-bar="index !== 0" :bottom-avatar-bar="true" :content-under-username="true" />
<Note v-if="note" :note="note" :top-avatar-bar="true" />
</div>
<Note v-for="note of context?.descendants" :note="note" />
</div>