2022-11-26 17:33:32 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { Account } from 'masto'
|
|
|
|
|
|
|
|
const { account } = defineProps<{
|
|
|
|
account: Account
|
|
|
|
}>()
|
|
|
|
|
|
|
|
const serverName = $computed(() => getServerName(account))
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-01-01 23:29:11 +09:00
|
|
|
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light dir="ltr">
|
2022-12-03 14:22:45 +09:00
|
|
|
<!-- fix: #274 only line-clamp-1 can be used here, using text-ellipsis is not valid -->
|
2022-11-27 05:41:18 +09:00
|
|
|
<span text-secondary>{{ getShortHandle(account) }}</span>
|
|
|
|
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
|
2022-11-26 17:33:32 +09:00
|
|
|
</p>
|
|
|
|
</template>
|