mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 09:25:24 +03:00
16 lines
419 B
Vue
16 lines
419 B
Vue
<script setup lang="ts">
|
|
import type { Account } from 'masto'
|
|
|
|
const { account } = defineProps<{
|
|
account: Account
|
|
}>()
|
|
|
|
const serverName = $computed(() => getServerName(account))
|
|
</script>
|
|
|
|
<template>
|
|
<p ws-nowrap text-ellipsis of-hidden text-secondary-light>
|
|
<span text-secondary>{{ getShortHandle(account) }}</span>
|
|
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
|
|
</p>
|
|
</template>
|