diff --git a/web/index.html b/web/index.html index a71a7d5a..ba24d8a9 100644 --- a/web/index.html +++ b/web/index.html @@ -118,9 +118,14 @@ background-color: var(--background); } div.border { - padding: 1em; border: 1px dashed var(--accent); } + div.border-solid { + border: 1px solid var(--background-dim); + } + div.inline { + display: inline; + } @media screen and (max-width: 786px) { div.sticky { top: 1.75rem; diff --git a/web/src/components/object.rs b/web/src/components/object.rs index c9d47cea..280cb91b 100644 --- a/web/src/components/object.rs +++ b/web/src/components/object.rs @@ -131,6 +131,19 @@ pub fn Object(object: crate::Object) -> impl IntoView { } else { Some(view! {
}) }; + + let audience_badge = object.audience().id().str() + .map(|x| view! { +
+ @ + + + {Uri::pretty(&x)} + + +
+ }); + let post_inner = view! {

@@ -145,7 +158,7 @@ pub fn Object(object: crate::Object) -> impl IntoView { }.into_view(), // lemmy with Page, peertube with Video Ok(apb::ObjectType::Document(t)) => view! { -
+
{object.name().unwrap_or_default().to_string()}
{post_inner} @@ -188,6 +201,7 @@ pub fn Object(object: crate::Object) -> impl IntoView { {post}
+ {audience_badge} diff --git a/web/src/page/register.rs b/web/src/page/register.rs index 395b45de..9ff13198 100644 --- a/web/src/page/register.rs +++ b/web/src/page/register.rs @@ -15,7 +15,7 @@ pub fn RegisterPage() -> impl IntoView { view! {
register -
+