From 73f178462f95d6b02b57840399c607dd5865cb3c Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 23 Apr 2024 03:31:42 +0200 Subject: [PATCH] fix(web): better activity line, dates, icons --- web/src/components/activity.rs | 13 ++++++------- web/src/components/mod.rs | 6 +++--- web/src/components/object.rs | 8 ++++---- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/web/src/components/activity.rs b/web/src/components/activity.rs index bdfc079d..8821c716 100644 --- a/web/src/components/activity.rs +++ b/web/src/components/activity.rs @@ -20,13 +20,12 @@ pub fn ActivityLine(activity: serde_json::Value) -> impl IntoView { {username}@{domain} - {kind.as_ref().to_string()} - - - - - - + + + {kind.as_ref().to_string()} + + + } diff --git a/web/src/components/mod.rs b/web/src/components/mod.rs index a8289cf6..2d771ac9 100644 --- a/web/src/components/mod.rs +++ b/web/src/components/mod.rs @@ -26,7 +26,7 @@ pub fn DateTime(t: Option>) -> impl IntoView { } else if delta.num_days() < 90 { format!("{}d ago", delta.num_days()) } else { - t.format("%Y/%m/%d %H:%M:%S").to_string() + t.format("%d/%m/%Y").to_string() }; let rfc = t.to_rfc2822(); Some(view! { @@ -37,7 +37,7 @@ pub fn DateTime(t: Option>) -> impl IntoView { } } -pub const PRIVACY_PUBLIC : &str = "đŸ’ŋ"; +pub const PRIVACY_PUBLIC : &str = "đŸĒŠ"; pub const PRIVACY_FOLLOWERS : &str = "🔒"; pub const PRIVACY_PRIVATE : &str = "📨"; @@ -52,6 +52,6 @@ pub fn PrivacyMarker(addressed: Vec) -> impl IntoView { }; let audience = format!("[ {} ]", addressed.join(", ")); view! { - {privacy} + {privacy} } } diff --git a/web/src/components/object.rs b/web/src/components/object.rs index 63c6ddfd..c35986a3 100644 --- a/web/src/components/object.rs +++ b/web/src/components/object.rs @@ -22,13 +22,13 @@ pub fn Object(object: serde_json::Value) -> impl IntoView { {object.in_reply_to().id().map(|reply| view! { - reply + reply })} - + + - "↗" - + "↗"