1
0
elk/components/search/SearchAccountInfo.vue

21 lines
576 B
Vue
Raw Normal View History

2023-01-06 07:50:14 +09:00
<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
}>()
</script>
<template>
2023-01-07 23:55:10 +09:00
<div flex gap-2 items-center>
2023-01-06 07:50:14 +09:00
<AccountAvatar w-10 h-10 :account="account" shrink-0 />
<div flex="~ col gap1" shrink h-full overflow-hidden leading-none>
<div flex="~" gap-2>
<AccountDisplayName :account="account" line-clamp-1 ws-pre-wrap break-all text-base />
2023-01-06 07:50:14 +09:00
<AccountBotIndicator v-if="account.bot" />
</div>
<AccountHandle text-sm :account="account" text-secondary-light />
</div>
2023-01-07 23:55:10 +09:00
</div>
2023-01-06 07:50:14 +09:00
</template>