frontend/components/social-elements/notes/mention.vue

16 lines
644 B
Vue
Raw Normal View History

<template>
<a :href="`/@${account.acct}`" target="_blank"
class="shrink break-all rounded bg-dark-200 ring-1 ring-white/5 ring-inset text-primary2-200 px-2 py-1 not-prose font-semibold cursor-pointer [&:not(:last-child)]:mr-1 duration-200 hover:bg-primary2-600/30">
<img class="size-[1em] rounded ring-1 ring-white/5 !inline align-middle mb-1 mr-1" :src="account.avatar"
:alt="`${account.acct}'s avatar'`" />
{{ account.display_name || account.acct }}
</a>
</template>
<script lang="ts" setup>
import type { Account } from "@versia/client/types";
defineProps<{
account: Account;
}>();
</script>