From f5324a7aa67be69d51ef1ab605def8d19abc3635 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 11 Jun 2024 21:47:13 -0500 Subject: [PATCH] Reduce emoji size, improve code --- pageUpdater.js | 2 +- static/root.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pageUpdater.js b/pageUpdater.js index 455b968..f9598de 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -77,7 +77,7 @@ function converter(html) { var addedHTML = "

" if (status.emoji) { if (status.emoji.id) { - addedHTML += `` + addedHTML += `` } else { addedHTML += status.emoji.name } diff --git a/static/root.css b/static/root.css index bf00327..382f55d 100644 --- a/static/root.css +++ b/static/root.css @@ -65,6 +65,12 @@ display: inline-block; } +.emoji { + max-width: 32px !important; + vertical-align: top; + padding: 0; +} + img:not(.project-inner > div > img):not(.activity>img) { width: 100%; max-width: 168px;