1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-13 08:15:14 +08:00

Fix emoji replacements, make emoji images consistent ()

- Fix emoji not being replaced in issue title change text
- Make the image attributes consistent, add alt, remove align

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2020-08-24 03:44:53 +02:00
committed by GitHub
parent 26bf4c51fb
commit ee047312a1
5 changed files with 5 additions and 4 deletions
modules
templates/repo/issue/view_content
web_src/js/features

@ -24,7 +24,7 @@ for (const key of emojiKeys) {
export function emojiHTML(name) {
let inner;
if (name === 'gitea') {
inner = `<img class="emoji" alt=":${name}:" src="${StaticUrlPrefix}/img/emoji/gitea.png" align="absmiddle">`;
inner = `<img alt=":${name}:" src="${StaticUrlPrefix}/img/emoji/gitea.png">`;
} else {
inner = emojiString(name);
}