fix: ensure aspect ratio for avatars
This commit is contained in:
parent
a347515781
commit
b64d1add86
|
@ -12,6 +12,8 @@ const error = $ref(false)
|
||||||
<template>
|
<template>
|
||||||
<img
|
<img
|
||||||
:key="account.avatar"
|
:key="account.avatar"
|
||||||
|
width="400"
|
||||||
|
height="400"
|
||||||
:src="error ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : account.avatar"
|
:src="error ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : account.avatar"
|
||||||
:alt="$t('account.avatar_description', [account.username])"
|
:alt="$t('account.avatar_description', [account.username])"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
|
Loading…
Reference in a new issue