aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-11-13 06:51:26 -0500
committerXe Iaso <me@christine.website>2022-11-13 06:51:26 -0500
commit60355489a6a81372a3e594e4a7a01ab34639caeb (patch)
treed60a5c6693b2d7bdb73aa6cccceb0811bbce3010
parent05feb3b2710eac770ed5ed871f5c9b68bc183416 (diff)
downloadxesite-60355489a6a81372a3e594e4a7a01ab34639caeb.tar.xz
xesite-60355489a6a81372a3e594e4a7a01ab34639caeb.zip
fix verified shitpost
Signed-off-by: Xe Iaso <me@christine.website>
-rw-r--r--css/shim.css7
-rw-r--r--lib/xesite_templates/src/lib.rs2
2 files changed, 8 insertions, 1 deletions
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)}