fix (client): Unicode emoji rendering
This commit is contained in:
parent
26c3b25a40
commit
65e7d9d157
1 changed files with 2 additions and 3 deletions
|
@ -12,8 +12,8 @@
|
||||||
v-else-if="char && !useOsNativeEmojis"
|
v-else-if="char && !useOsNativeEmojis"
|
||||||
class="mk-emoji"
|
class="mk-emoji"
|
||||||
:src="url"
|
:src="url"
|
||||||
:alt="alt || undefined"
|
:alt="alt!"
|
||||||
:title="alt || undefined"
|
:title="alt!"
|
||||||
decoding="async"
|
decoding="async"
|
||||||
/>
|
/>
|
||||||
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
|
||||||
|
@ -50,7 +50,6 @@ const customEmoji = computed(() =>
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
const url = computed(() => {
|
const url = computed(() => {
|
||||||
if (!customEmoji.value) return undefined;
|
|
||||||
if (char.value) {
|
if (char.value) {
|
||||||
return char2filePath(char.value);
|
return char2filePath(char.value);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue