blob: 224979707b971c0a5e84c87a7619944946f9c358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<img :class="$style.root" :src="url" :alt="props.emoji" decoding="async"/>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import { char2twemojiFilePath } from '@@/js/emoji-base.js';
const props = defineProps<{
emoji: string;
}>();
const url = computed(() => char2twemojiFilePath(props.emoji));
</script>
<style lang="scss" module>
.root {
height: 1.25em;
vertical-align: -0.25em;
}
</style>
|