snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bbb99b3453570c458543e3bb66a576cdcb95ae18
parent 5d519288fb9bb8fdfb9323c77a3d1b18c480a5d6
Author: grunfink <grunfink@noreply.codeberg.org>
Date:   Thu,  9 May 2024 06:04:56 +0000

Merge pull request 'Set avatars and custom emoji as square (fixes display in Dillo)' (#166) from kvibber/snac2:style-tweaks-on-2.52 into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/166

Diffstat:
Mhtml.c | 2+-
Mutils.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html.c b/html.c @@ -55,7 +55,7 @@ xs_str *replace_shortnames(xs_str *s, xs_list *tag, int ems) tag_list = xs_dup(tag); } - xs *style = xs_fmt("height: %dem; vertical-align: middle;", ems); + xs *style = xs_fmt("height: %dem; width: %dem; vertical-align: middle;", ems, ems); xs_list *p = tag_list; char *v; diff --git 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"