diff --git a/web/index.html b/web/index.html
index 894179a1..8406bb9e 100644
--- a/web/index.html
+++ b/web/index.html
@@ -36,6 +36,11 @@
padding-bottom: 0;
line-height: 1rem;
}
+ blockquote {
+ margin-left: 1.25em;
+ margin-top: 0;
+ margin-bottom: 0;
+ }
span.footer {
padding: .1em;
font-size: .6em;
diff --git a/web/src/lib.rs b/web/src/lib.rs
index 7e2aa67a..c51a6759 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -351,6 +351,18 @@ pub fn Object(object: serde_json::Value) -> impl IntoView {
}
}
+#[component]
+pub fn ObjectInline(object: serde_json::Value) -> impl IntoView {
+ let summary = object.summary().unwrap_or_default().to_string();
+ let content = dissolve::strip_html_tags(object.content().unwrap_or_default());
+ view! {
+ {if summary.is_empty() { None } else { Some(view! { {summary}
})}}
+
+ {content.into_iter().map(|x| view! {+ } +} + #[component] pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView { let object_id = activity.object().id().unwrap_or_default(); @@ -396,7 +408,7 @@ pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView { {match kind { // post - apb::ActivityType::Create => view! { }.into_view(), + apb::ActivityType::Create => view! {{x}
}).collect_view()} +