diff --git a/web/index.html b/web/index.html index 58338d2f..f1c05b83 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 efc0717d..47d43162 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! {
"loading "
}.into_view(), - Some(None) => view! {could not load following
}.into_view(),
- Some(Some(arr)) => 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(), + }} +