From 5c0577b00ca92c9a51005b384dd7a5cc537b4289 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 27 Dec 2024 01:21:15 +0100 Subject: [PATCH] fix(web): even more reliable actor header --- web/index.html | 10 ++++++++-- web/src/actors/header.rs | 26 ++++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/web/index.html b/web/index.html index 11617e6..069225c 100644 --- a/web/index.html +++ b/web/index.html @@ -203,8 +203,8 @@ } div.overlap { position: relative; - bottom: 3em; - margin-bottom: -3em; + bottom: 2em; + margin-bottom: -2em; } img { max-width: 100%; @@ -280,6 +280,12 @@ p.tiny-text { line-height: .75em; } + p.line { + margin: 0; + } + p.shadow { + text-shadow: 0px 0px 3px var(--background); + } table.post-table { border-collapse: collapse; } diff --git a/web/src/actors/header.rs b/web/src/actors/header.rs index 5188bf0..02ee845 100644 --- a/web/src/actors/header.rs +++ b/web/src/actors/header.rs @@ -68,15 +68,17 @@ pub fn ActorHeader() -> impl IntoView {
-
- {name}{actor_type_tag}
- {username.clone()}@{domain}
- +
+

+ "\u{1f582}"{actor.statuses_count().unwrap_or_default()} + "👥"{actor.following_count().unwrap_or_default()} + "📢"{actor.followers_count().unwrap_or_default()} +

+

{name}{actor_type_tag}

+

{username.clone()}@{domain}

+

- {actor.statuses_count().unwrap_or_default()}" ""\u{1f582}"
- {actor.following_count().unwrap_or_default()}" ""👥"
- {actor.followers_count().unwrap_or_default()}" ""📢"
@@ -102,13 +104,13 @@ pub fn ActorHeader() -> impl IntoView {

- "🖂 ""statuses" + "🖂 ""outbox" - - "📢 ""followers" + + "📢"" followers" - - "👥 ""following" + + "👥"" following"