summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorKelson Vibber <kelson@pobox.com>2024-05-09 04:27:58 +0000
committerKelson Vibber <kelson@pobox.com>2024-05-09 04:28:01 +0000
commitbe420cae77c6da69a976e15848989a5e52c56403 (patch)
tree09186f263ea69b9f9b050bf993a07d023b3819a6 /utils.c
parentc5ae10af862d3c76c79e848fc4dbe69f80cfc214 (diff)
Set avatars and custom emoji as square (fixes display in Dillo)
The minimalist web browser Dillo has recently started up development again. Its CSS implementation only applies the explicitly stated width and height of an image, so avatars were displaying at 2.5 em high, and the full original width. https://dillo-browser.github.io/
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index d00f513..0523cac 100644
--- a/utils.c
+++ b/utils.c
@@ -49,7 +49,7 @@ static const char *default_css =
".snac-top-user { text-align: center; padding-bottom: 2em }\n"
".snac-top-user-name { font-size: 200% }\n"
".snac-top-user-id { font-size: 150% }\n"
- ".snac-avatar { float: left; height: 2.5em; padding: 0.25em }\n"
+ ".snac-avatar { float: left; height: 2.5em; width: 2.5em; padding: 0.25em }\n"
".snac-author { font-size: 90%; text-decoration: none }\n"
".snac-author-tag { font-size: 80% }\n"
".snac-pubdate { color: #a0a0a0; font-size: 90% }\n"