1
0
Fork 0
forked from alemi/upub

fix(web): indentation line for activities too

This commit is contained in:
əlemi 2024-05-08 02:46:26 +02:00
parent 488cac9703
commit 3ed82a7192
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -98,21 +98,27 @@ pub fn TimelineRepliesRecursive(tl: Timeline, root: String) -> impl IntoView {
let oid = object.object().id().unwrap_or_default().to_string();
if let Some(note) = CACHE.get(&oid) {
view! {
<div class="context depth-r">
<ActivityLine activity=object />
<Object object=note />
<div class="depth-r">
<TimelineRepliesRecursive tl=tl root=oid />
</div>
}.into_view()
</div>
}
} else {
view! {
<div class="context depth-r">
<ActivityLine activity=object />
}.into_view()
</div>
}
}
},
Some(apb::ObjectType::Activity(_)) => view! {
<div class="context depth-r">
<ActivityLine activity=object />
}.into_view(),
</div>
},
_ => {
let oid = object.id().unwrap_or_default().to_string();
view! {
@ -122,7 +128,7 @@ pub fn TimelineRepliesRecursive(tl: Timeline, root: String) -> impl IntoView {
<TimelineRepliesRecursive tl=tl root=oid />
</div>
</div>
}.into_view()
}
},
}
}