From 60355489a6a81372a3e594e4a7a01ab34639caeb Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 13 Nov 2022 06:51:26 -0500 Subject: fix verified shitpost Signed-off-by: Xe Iaso --- css/shim.css | 7 +++++++ lib/xesite_templates/src/lib.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/css/shim.css b/css/shim.css index 589dd59..2e1df90 100644 --- a/css/shim.css +++ b/css/shim.css @@ -83,6 +83,13 @@ figcaption { padding: 2ch; } +.verified { + max-width: 16px; + max-height: 16px; + min-width: 16px; + min-height: 16px; +} + @media (prefers-color-scheme: light) { .warning { background-color: #fbf1c7; diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index 5e6fee2..8171a3b 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -203,7 +203,7 @@ pub fn toot_embed(u: User, t: Toot) -> Markup { .media-heading { (u.name) @if u.id == "https://pony.social/users/cadey" { - img src="https://cdn.xeiaso.net/file/christine-static/blog/verified.png" style="height=1.5ch;width=1.5ch"; + img.verified src="https://cdn.xeiaso.net/file/christine-static/blog/verified.png"; } " " a href=(u.url) {"@" (u.preferred_username)} -- cgit v1.2.3