311c2172d7
This reverts commit 9b5aeb76d8
.
29 lines
888 B
Vue
29 lines
888 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<MkCondensedLine v-if="defaultStore.state.enableCondensedLineForAcct" :minScale="2 / 3">
|
|
<span>@{{ user.username }}</span>
|
|
<span v-if="user.host || detail || defaultStore.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
|
</MkCondensedLine>
|
|
<span v-else>
|
|
<span>@{{ user.username }}</span>
|
|
<span v-if="user.host || detail || defaultStore.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import * as Misskey from 'misskey-js';
|
|
import { toUnicode } from 'punycode/';
|
|
import { host as hostRaw } from '@/config.js';
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
defineProps<{
|
|
user: Misskey.entities.User;
|
|
detail?: boolean;
|
|
}>();
|
|
|
|
const host = toUnicode(hostRaw);
|
|
</script>
|