mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-14 23:21:46 +03:00
17 lines
543 B
Vue
17 lines
543 B
Vue
<script setup lang="ts">
|
|
import type { Account } from 'masto'
|
|
|
|
// 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<{
|
|
account: Account
|
|
square?: boolean
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div :key="account.avatar" v-bind="$attrs" class="w-54px h-54px flex items-center justify-center" :class="{ 'rounded-full bg-base': !square }">
|
|
<AccountAvatar :account="account" w-48px h-48px :square="square" />
|
|
</div>
|
|
</template>
|