Reduce emoji size, improve code

This commit is contained in:
bingus_violet 2024-06-11 21:47:13 -05:00
parent bbf2c5113f
commit f5324a7aa6
2 changed files with 7 additions and 1 deletions

View file

@ -77,7 +77,7 @@ function converter(html) {
var addedHTML = "<hr/><p>" var addedHTML = "<hr/><p>"
if (status.emoji) { if (status.emoji) {
if (status.emoji.id) { if (status.emoji.id) {
addedHTML += `<img src="/emojis/${status.emoji.id}" style="width: 48px; vertical-align: middle;"/>` addedHTML += `<img src="/emojis/${status.emoji.id}" class="emoji"/>`
} else { } else {
addedHTML += status.emoji.name addedHTML += status.emoji.name
} }

View file

@ -65,6 +65,12 @@
display: inline-block; display: inline-block;
} }
.emoji {
max-width: 32px !important;
vertical-align: top;
padding: 0;
}
img:not(.project-inner > div > img):not(.activity>img) { img:not(.project-inner > div > img):not(.activity>img) {
width: 100%; width: 100%;
max-width: 168px; max-width: 168px;