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