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