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