fix: ensure aspect ratio for avatars

This commit is contained in:
patak 2022-12-30 23:41:07 +01:00
parent a347515781
commit b64d1add86

View file

@ -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"