Files
moshing-mammut/src/lib/components/AvatarComponent.svelte
2023-04-11 16:02:54 +02:00

21 lines
417 B
Svelte

<script lang="ts">
import type { Account } from '$lib/mastodon/response';
export let account: Account;
let avatarDescription: string;
$: avatarDescription = `Avatar for ${account.acct}`;
</script>
<img src={account.avatar} alt={avatarDescription} />
<style>
img {
max-width: 50px;
max-height: 50px;
width: auto;
height: auto;
object-fit: contain;
border-radius: 3px;
}
</style>