调整卡片高度

This commit is contained in:
liuwei
2025-06-04 16:49:14 +08:00
parent 7718995202
commit ce01240c98

View File

@@ -17,7 +17,7 @@
<el-col :span="6"> <el-col :span="6">
<div class="user-avatar-column"> <div class="user-avatar-column">
<div class="user-avatar-container"> <div class="user-avatar-container">
<img :src="currentUser.data.avatar" alt="用户头像" /> <img :src="currentUser.data.avatar" alt="用户头像" style="width: 15px; height: 15px;" />
</div> </div>
</div> </div>
</el-col> </el-col>
@@ -777,18 +777,14 @@
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
position: relative; display: flex;
align-items: center;
justify-content: center;
} }
.user-avatar-container img { .user-avatar-container img {
position: absolute; width: 15px !important;
top: 50%; height: 15px !important;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
width: 30px !important;
height: 30px !important;
max-width: 100%;
max-height: 100%;
object-fit: contain; object-fit: contain;
} }