diff --git a/web/src/components/activity.rs b/web/src/components/activity.rs index 9cb3cbb..0bede37 100644 --- a/web/src/components/activity.rs +++ b/web/src/components/activity.rs @@ -43,6 +43,7 @@ pub fn Item( item: crate::Object, #[prop(optional)] sep: bool, #[prop(optional)] replies: bool, + #[prop(optional)] slim: bool, ) -> impl IntoView { let config = use_context::>().expect("missing config context"); let id = item.id().unwrap_or_default().to_string(); @@ -75,7 +76,7 @@ pub fn Item( _ => None, }; Some(view! { - + {if !slim { Some(view! { }) } else { None }} {object} {sep.clone()} }.into_view()) diff --git a/web/src/timeline/thread.rs b/web/src/timeline/thread.rs index cea0177..723ab61 100644 --- a/web/src/timeline/thread.rs +++ b/web/src/timeline/thread.rs @@ -64,7 +64,7 @@ fn FeedRecursive(tl: Timeline, root: String) -> impl IntoView { children=move |(id, obj)| view! {
- +