From d2477339e7e5820367a5100c33a2bf900c94042f Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 26 Dec 2024 21:57:12 +0100 Subject: [PATCH] fix(web): actor header with flexbox bye bye table jank, hello properly sized header which stays the same on all display sizes and name lengths yayyyy --- web/src/actors/header.rs | 44 +++++++++++++--------------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/web/src/actors/header.rs b/web/src/actors/header.rs index 3a985cb..e6d7b7c 100644 --- a/web/src/actors/header.rs +++ b/web/src/actors/header.rs @@ -64,36 +64,20 @@ pub fn ActorHeader() -> impl IntoView {
// TODO bad way to have it fixed height ewwww
- - - - - - - - - - - - - - - -
- - - {name}{actor_type_tag} - - {actor.statuses_count().want()}" ""\u{1f582}" -
- {username.clone()}@{domain} - - {actor.following_count().want()}" ""👥" -
- - - {actor.followers_count().want()}" ""📢" -
+
+ + +
+ {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()}" ""📢" +
+
{if following_me { Some(view! { follows you })