mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Render notes with replies in a thread view
This commit is contained in:
parent
977defc169
commit
0a977468d0
4 changed files with 35 additions and 8 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue