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
1 changed files with 2 additions and 3 deletions

View File

@ -12,8 +12,8 @@
v-else-if="char && !useOsNativeEmojis"
class="mk-emoji"
:src="url"
:alt="alt || undefined"
:title="alt || undefined"
:alt="alt!"
:title="alt!"
decoding="async"
/>
<span v-else-if="char && useOsNativeEmojis">{{ char }}</span>
@ -50,7 +50,6 @@ const customEmoji = computed(() =>
: null,
);
const url = computed(() => {
if (!customEmoji.value) return undefined;
if (char.value) {
return char2filePath(char.value);
} else {