show emoji name on hover
This commit is contained in:
parent
f5324a7aa6
commit
2674b553b2
2 changed files with 7 additions and 2 deletions
|
@ -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}" class="emoji"/>`
|
addedHTML += `<img src="/emojis/${status.emoji.id}" title="${status.emoji.name}" class="emoji"/>`
|
||||||
} else {
|
} else {
|
||||||
addedHTML += status.emoji.name
|
addedHTML += status.emoji.name
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,9 +66,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
max-width: 32px !important;
|
max-width: 2rem !important;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emoji:hover {
|
||||||
|
transform: scale(1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
img:not(.project-inner > div > img):not(.activity>img) {
|
img:not(.project-inner > div > img):not(.activity>img) {
|
||||||
|
|
Loading…
Reference in a new issue