From a194aaaa3583ba336c1f1672e86f6831397543a1 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 23 May 2024 15:07:59 +0200 Subject: [PATCH] fix(web): avatar css, centered devtools link --- web/index.html | 16 ++++++++-------- web/src/components/user.rs | 4 ++-- web/src/page/config.rs | 2 +- web/src/page/debug.rs | 2 +- web/src/page/user.rs | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/web/index.html b/web/index.html index 528ecdc..b4d81ec 100644 --- a/web/index.html +++ b/web/index.html @@ -162,7 +162,7 @@ img { max-width: 100%; } - img.avatar-circle { + img.avatar { display: inline; border-radius: 50%; } @@ -170,14 +170,14 @@ background-color: var(--background); border: .3em solid var(--accent); } - img.avatar-inline { - display: inline; + img.inline { height: .75em; - border-radius: 50%; } - img.inline-avatar { - height: 2em; - width: 2em; + img.avatar-actor { + min-height: 2em; + max-height: 2em; + min-width: 2em; + max-width: 2em; } .box { border: 3px solid var(--accent); @@ -309,7 +309,7 @@ var(--background) 1em ); } - .loader { + .spinner { animation: spin 1s linear infinite; } span.dots { diff --git a/web/src/components/user.rs b/web/src/components/user.rs index 0c11d4b..c99d1fb 100644 --- a/web/src/components/user.rs +++ b/web/src/components/user.rs @@ -11,7 +11,7 @@ pub fn ActorStrip(object: crate::Object) -> impl IntoView { let avatar = object.icon().get().map(|x| x.url().id().unwrap_or(DEFAULT_AVATAR_URL.into())).unwrap_or(DEFAULT_AVATAR_URL.into()); view! { - {username}@{domain} + {username}@{domain} } } @@ -33,7 +33,7 @@ pub fn ActorBanner(object: crate::Object) -> impl IntoView {
- + diff --git a/web/src/page/config.rs b/web/src/page/config.rs index 9a12b57..7126a19 100644 --- a/web/src/page/config.rs +++ b/web/src/page/config.rs @@ -91,7 +91,7 @@ pub fn ConfigPage(setter: WriteSignal) -> impl IntoView {
  • " orphans"

  • -

    devtools

    +

    devtools

    } } diff --git a/web/src/page/debug.rs b/web/src/page/debug.rs index d10c2d7..d80a6a6 100644 --- a/web/src/page/debug.rs +++ b/web/src/page/debug.rs @@ -56,7 +56,7 @@ pub fn DebugPage() -> impl IntoView {
    {display_name}
    diff --git a/web/src/page/user.rs b/web/src/page/user.rs index 2ec78bd..cd5ffde 100644 --- a/web/src/page/user.rs +++ b/web/src/page/user.rs @@ -104,7 +104,7 @@ pub fn UserPage(tl: Timeline) -> impl IntoView {
    - + {display_name}{actor_type_tag}