fix(avatar): update default bg color (#214)
This commit is contained in:
parent
db47e31597
commit
08fe00df6d
2 changed files with 6 additions and 2 deletions
|
@ -4,6 +4,8 @@ import type { Account } from 'masto'
|
|||
defineProps<{
|
||||
account: Account
|
||||
}>()
|
||||
|
||||
const loaded = $ref(false)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -12,7 +14,9 @@ defineProps<{
|
|||
:src="account.avatar"
|
||||
:alt="account.username"
|
||||
loading="lazy"
|
||||
rounded-full bg-gray:10
|
||||
rounded-full
|
||||
:class="loaded ? 'bg-gray' : 'bg-gray:10'"
|
||||
v-bind="$attrs"
|
||||
@load="loaded = true"
|
||||
>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue