aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-08-24 03:44:53 +0200
committerGitHub <noreply@github.com>2020-08-23 21:44:53 -0400
commitee047312a1a3238a8504200f7ded8536ebc838e3 (patch)
treea4e79586f0468725bcf66a083e44c84f9a39ee5b /web_src
parent26bf4c51fb900b8a31cfb6d17095515c118a68a1 (diff)
downloadgitea-ee047312a1a3238a8504200f7ded8536ebc838e3.tar.gz
gitea-ee047312a1a3238a8504200f7ded8536ebc838e3.zip
Fix emoji replacements, make emoji images consistent (#12567)
- 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>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/emoji.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/emoji.js b/web_src/js/features/emoji.js
index 3c24a165b9..51d8801dc8 100644
--- a/web_src/js/features/emoji.js
+++ b/web_src/js/features/emoji.js
@@ -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);
}