fix (client): Unicode emoji rendering

This commit is contained in:
naskya 2024-04-07 18:54:14 +09:00
parent 26c3b25a40
commit 65e7d9d157
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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 {