add title and alt for avatars, fix console errors in avatarlist

This commit is contained in:
shpuld 2019-05-01 17:33:56 +03:00
parent a954f56e34
commit c44c048356
10 changed files with 33 additions and 19 deletions

View file

@ -2,7 +2,7 @@ import StillImage from '../still-image/still-image.vue'
const UserAvatar = {
props: [
'src',
'user',
'betterShadow',
'compact'
],

View file

@ -1,8 +1,10 @@
<template>
<StillImage
class="avatar"
:alt="user.screen_name"
:title="user.screen_name"
:src="user.profile_image_url_original"
:class="{ 'avatar-compact': compact, 'better-shadow': betterShadow }"
:src="imgSrc"
:imageLoadError="imageLoadError"
/>
</template>