头像相关样式调整

This commit is contained in:
bob
2025-02-24 11:39:14 +08:00
parent b680363e8f
commit de37c4277b
3 changed files with 16 additions and 2 deletions

View File

@@ -375,6 +375,7 @@ const onVideoCall = () => {
height: 100px;
position: absolute;
top: 35px;
border: 2px solid #fff;
}
.gender {

View File

@@ -63,7 +63,7 @@ const statusCircleColor = computed(() => {
<template>
<div class="user-avatar-box" :style="{ width: avatarSize + 'px', height: avatarSize + 'px' }">
<el-avatar v-if="isShowImg" :src="props.showAvatarThumb" :size="avatarSize" />
<el-avatar class="avatar" v-if="isShowImg" :src="props.showAvatarThumb" :size="avatarSize" />
<span
class="first-char-box"
v-else-if="firstChar"
@@ -71,7 +71,7 @@ const statusCircleColor = computed(() => {
>
{{ firstChar }}
</span>
<el-avatar v-else :src="default_avatar" :size="avatarSize" />
<el-avatar class="avatar" v-else :src="default_avatar" :size="avatarSize" />
<div
v-if="props.userStatus != null"
class="status-circle"
@@ -121,5 +121,13 @@ const statusCircleColor = computed(() => {
bottom: 0;
right: 0;
}
.avatar {
border: 1px solid #fff;
}
.avatar ::v-deep img {
margin: 0;
}
}
</style>

View File

@@ -133,6 +133,11 @@ watch(
height: 100px;
position: absolute;
top: 40px;
border: 2px solid #fff;
}
.avatar ::v-deep img {
margin: 0;
}
.gender {