2022-12-29 00:14:29 +03:00
|
|
|
<script setup lang="ts">
|
2023-01-08 09:21:09 +03:00
|
|
|
import type { mastodon } from 'masto'
|
2022-12-29 00:14:29 +03:00
|
|
|
|
|
|
|
// Avatar with a background base achieving a 3px border to be used in status cards
|
|
|
|
// The border is used for Avatar on Avatar for reblogs and connecting replies
|
|
|
|
|
|
|
|
defineProps<{
|
2023-01-08 09:21:09 +03:00
|
|
|
account: mastodon.v1.Account
|
2023-01-05 15:10:22 +03:00
|
|
|
square?: boolean
|
2022-12-29 00:14:29 +03:00
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-01-08 01:00:26 +03:00
|
|
|
<div :key="account.avatar" v-bind="$attrs" :style="{ 'clip-path': square ? `url(#avatar-mask)` : 'none' }" :class="{ 'rounded-full': !square }" bg-base w-54px h-54px flex items-center justify-center>
|
2023-01-05 15:10:22 +03:00
|
|
|
<AccountAvatar :account="account" w-48px h-48px :square="square" />
|
2022-12-29 00:14:29 +03:00
|
|
|
</div>
|
|
|
|
</template>
|