iceshrimp-legacy/packages/client/src/components/global/MkUserName.vue

31 lines
460 B
Vue
Raw Normal View History

2018-12-06 03:18:13 +01:00
<template>
2023-04-08 02:01:42 +02:00
<Mfm
:class="$style.root"
:text="user.name || user.username"
:plain="true"
:nowrap="nowrap"
:custom-emojis="user.emojis"
/>
2018-12-06 03:18:13 +01:00
</template>
<script lang="ts" setup>
2023-04-08 02:01:42 +02:00
import {} from "vue";
2023-07-17 00:32:32 +02:00
import type * as misskey from "calckey-js";
2018-12-06 03:18:13 +01:00
2023-04-08 02:01:42 +02:00
const props = withDefaults(
defineProps<{
user: misskey.entities.User;
nowrap?: boolean;
}>(),
{
nowrap: true,
2023-07-06 03:28:27 +02:00
},
2023-04-08 02:01:42 +02:00
);
2018-12-06 03:18:13 +01:00
</script>
<style lang="scss" module>
.root {
unicode-bidi: isolate;
}
</style>