fix(web): indentation line for activities too
This commit is contained in:
parent
488cac9703
commit
3ed82a7192
1 changed files with 16 additions and 10 deletions
|
@ -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()
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue