fix the default user avatar not display when user cannot load user avatar url
This commit is contained in:
@@ -116,8 +116,8 @@
|
|||||||
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
||||||
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
||||||
<template #placeholder>
|
<template #placeholder>
|
||||||
<div class="d-flex align-center justify-center fill-height">
|
<div class="d-flex align-center justify-center fill-height bg-light-primary">
|
||||||
<v-icon :icon="icons.user"/>
|
<v-icon color="primary" :icon="icons.user"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-img>
|
</v-img>
|
||||||
@@ -131,8 +131,8 @@
|
|||||||
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
||||||
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
||||||
<template #placeholder>
|
<template #placeholder>
|
||||||
<div class="d-flex align-center justify-center fill-height">
|
<div class="d-flex align-center justify-center fill-height bg-light-primary">
|
||||||
<v-icon :icon="icons.user"/>
|
<v-icon color="primary" :icon="icons.user"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-img>
|
</v-img>
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
:color="currentUserAvatar ? 'rgba(0,0,0,0)' : 'primary'">
|
||||||
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
<v-img :src="currentUserAvatar" v-if="currentUserAvatar">
|
||||||
<template #placeholder>
|
<template #placeholder>
|
||||||
<div class="d-flex align-center justify-center fill-height">
|
<div class="d-flex align-center justify-center fill-height bg-light-primary">
|
||||||
<v-icon size="48" class="user-profile-avatar-placeholder" :icon="icons.user"/>
|
<v-icon color="primary" size="48" class="user-profile-avatar-placeholder" :icon="icons.user"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-img>
|
</v-img>
|
||||||
|
|||||||
Reference in New Issue
Block a user