feat: always show account server (#119)
This commit is contained in:
parent
de468fb28b
commit
1194d56d09
4 changed files with 26 additions and 10 deletions
16
components/account/AccountHandle.vue
Normal file
16
components/account/AccountHandle.vue
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
import type { Account } from 'masto'
|
||||
|
||||
const { account } = defineProps<{
|
||||
account: Account
|
||||
}>()
|
||||
|
||||
const serverName = $computed(() => getServerName(account))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p>
|
||||
<span>{{ getShortHandle(account) }}</span>
|
||||
<span v-if="serverName" text="gray/95">@{{ serverName }}</span>
|
||||
</p>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue