diff --git a/web/index.html b/web/index.html index 58338d2..f1c05b8 100644 --- a/web/index.html +++ b/web/index.html @@ -256,9 +256,18 @@ color: var(--background); cursor: pointer; } - .ml-1-r { + .ml-1-l { margin-left: 1em; } + .ml-1-r { + margin-right: 1em; + } + .ml-3-r { + margin-left: 3em; + } + .mr-3-r { + margin-right: 3em; + } .depth-r { margin-left: .5em; } @@ -269,9 +278,18 @@ .depth-r { margin-left: .125em; } - .ml-1-r { + .ml-1-l { margin-left: 0; } + .ml-1-r { + margin-right: 0; + } + .ml-3-r { + margin-left: 0; + } + .mr-3-r { + margin-right: 0; + } .only-on-mobile { display: inherit; } diff --git a/web/src/components/activity.rs b/web/src/components/activity.rs index efc0717..47d4316 100644 --- a/web/src/components/activity.rs +++ b/web/src/components/activity.rs @@ -20,7 +20,7 @@ pub fn ActivityLine(activity: crate::Object) -> impl IntoView { }; view! {
- + diff --git a/web/src/page/actor/follow.rs b/web/src/page/actor/follow.rs index 1dec089..e231f12 100644 --- a/web/src/page/actor/follow.rs +++ b/web/src/page/actor/follow.rs @@ -9,6 +9,7 @@ use apb::Collection; #[component] pub fn FollowPage(outgoing: bool) -> impl IntoView { let follow___ = if outgoing { "following" } else { "followers" }; + let symbol = if outgoing { "👥" } else { "📢" }; let params = use_params_map(); let auth = use_context::().expect("missing auth context"); let user = Signal::derive(move ||{ @@ -19,7 +20,7 @@ pub fn FollowPage(outgoing: bool) -> impl IntoView { move || params.get().get("id").cloned().unwrap_or_default(), move |id| { async move { - match Http::fetch::(&format!("{URL_BASE}/actors/{id}/{follow___}/page"), auth).await { + match Http::fetch::(&format!("{URL_BASE}/actors/{id}/{follow___}/page"), auth).await { Err(e) => { tracing::error!("failed getting {follow___} for {id}: {e}"); None @@ -37,27 +38,31 @@ pub fn FollowPage(outgoing: bool) -> impl IntoView { actors::view::{follow___} -
+
{move || user.get().map(|x| view! { })} - {move || match resource.get() { - None => view! {

"loading "

}.into_view(), - Some(None) => view! { could not load following }.into_view(), - Some(Some(arr)) => view! { - x, - None => Arc::new(serde_json::Value::String(id)), - }; - view! { - - }.into_view() - } - / > - }, - }} + {symbol}" "{follow___} +
+ {move || match resource.get() { + None => view! {

"loading "

}.into_view(), + Some(None) => view! {

could not load {follow___}

}.into_view(), + Some(Some(arr)) => view! { + x, + None => Arc::new(serde_json::Value::String(id)), + }; + view! { + +
+ }.into_view() + } + / > + }.into_view(), + }} +
}