show emoji name on hover

This commit is contained in:
bingus_violet 2024-06-11 22:02:08 -05:00
parent f5324a7aa6
commit 2674b553b2
2 changed files with 7 additions and 2 deletions

View file

@ -77,7 +77,7 @@ function converter(html) {
var addedHTML = "<hr/><p>"
if (status.emoji) {
if (status.emoji.id) {
addedHTML += `<img src="/emojis/${status.emoji.id}" class="emoji"/>`
addedHTML += `<img src="/emojis/${status.emoji.id}" title="${status.emoji.name}" class="emoji"/>`
} else {
addedHTML += status.emoji.name
}

View file

@ -66,9 +66,14 @@
}
.emoji {
max-width: 32px !important;
max-width: 2rem !important;
vertical-align: top;
padding: 0;
margin-right: 10px;
}
.emoji:hover {
transform: scale(1.5);
}
img:not(.project-inner > div > img):not(.activity>img) {