mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-05 03:59:59 +03:00
17 lines
543 B
Vue
17 lines
543 B
Vue
<script setup lang="ts">
|
|
import type { mastodon } from 'masto'
|
|
|
|
const { account } = defineProps<{
|
|
account: mastodon.v1.Account
|
|
}>()
|
|
|
|
const serverName = $computed(() => getServerName(account))
|
|
</script>
|
|
|
|
<template>
|
|
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light dir="ltr">
|
|
<!-- fix: #274 only line-clamp-1 can be used here, using text-ellipsis is not valid -->
|
|
<span text-secondary>{{ getShortHandle(account) }}</span>
|
|
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
|
|
</p>
|
|
</template>
|