fix(frontend): MkEmojiPickerでカスタム絵文字が正常に表示されない問題を修正 (MisskeyIO#490)

This commit is contained in:
まっちゃとーにゅ 2024-02-28 01:06:37 +09:00 committed by GitHub
parent 6af95dcd5e
commit 061a4a3656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ SPDX-License-Identifier: AGPL-3.0-only
@pointerenter="computeButtonTitle"
@click="chosen(emoji, $event)"
>
<MkCustomEmoji v-if="emoji[0] === ':'" class="emoji" :name="getKey(emoji)" :normal="true"/>
<MkCustomEmoji v-if="typeof emoji !== 'string' && !Object.hasOwn(emoji, 'char')" class="emoji" :name="getKey(emoji)" :normal="true"/>
<MkEmoji v-else class="emoji" :emoji="getKey(emoji)" :normal="true"/>
</button>
</div>
@ -67,7 +67,7 @@ SPDX-License-Identifier: AGPL-3.0-only
@pointerenter="computeButtonTitle"
@click="chosen(emoji, $event)"
>
<MkCustomEmoji v-if="emoji[0] === ':'" class="emoji" :name="getKey(emoji)" :normal="true"/>
<MkCustomEmoji v-if="typeof emoji !== 'string' && !Object.hasOwn(emoji, 'char')" class="emoji" :name="getKey(emoji)" :normal="true"/>
<MkEmoji v-else class="emoji" :emoji="getKey(emoji)" :normal="true"/>
</button>
</div>