fix: ensure aspect ratio for avatars

zio/stable
patak 2022-12-30 23:41:07 +01:00
parent a347515781
commit b64d1add86
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ const error = $ref(false)
<template>
<img
:key="account.avatar"
width="400"
height="400"
:src="error ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : account.avatar"
:alt="$t('account.avatar_description', [account.username])"
loading="lazy"