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! {
<ActivityLine activity=object /> <div class="context depth-r">
<Object object=note /> <ActivityLine activity=object />
<div class="depth-r"> <Object object=note />
<TimelineRepliesRecursive tl=tl root=oid /> <div class="depth-r">
<TimelineRepliesRecursive tl=tl root=oid />
</div>
</div> </div>
}.into_view() }
} else { } else {
view! { view! {
<ActivityLine activity=object /> <div class="context depth-r">
}.into_view() <ActivityLine activity=object />
</div>
}
} }
}, },
Some(apb::ObjectType::Activity(_)) => view! { Some(apb::ObjectType::Activity(_)) => view! {
<ActivityLine activity=object /> <div class="context depth-r">
}.into_view(), <ActivityLine activity=object />
</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() }
}, },
} }
} }