mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 21:06:15 +08:00
FIX: prevents custom emoji to show double colons and set background img (#9471)
This commit is contained in:
parent
3e3ac704e1
commit
cfe510cbcf
app/assets/javascripts/discourse
@ -434,7 +434,7 @@ export default Component.extend({
|
||||
|
||||
this.$visibleSections.forEach(visibleSection => {
|
||||
const $unloadedEmojis = $(visibleSection).find(
|
||||
"button.emoji[data-loaded!='1']"
|
||||
"button.emoji:not(.custom)[data-loaded!='1']"
|
||||
);
|
||||
$.each($unloadedEmojis, (_, button) => {
|
||||
let offsetTop = button.offsetTop;
|
||||
|
@ -61,7 +61,7 @@
|
||||
{{#if emojis.length}}
|
||||
<div class='section-group'>
|
||||
{{#each emojis as |emoji|}}
|
||||
<button type="button" class="emoji" tabindex="-1" title=":{{emoji.code}}:">
|
||||
<button type="button" class="custom emoji" tabindex="-1" title="{{emoji.code}}">
|
||||
<img loading="lazy" class="emoji" src="{{emoji.src}}">
|
||||
</button>
|
||||
{{/each}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user