调整卡片高度
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<el-col :span="6">
|
||||
<div class="user-avatar-column">
|
||||
<div class="user-avatar-container">
|
||||
<img :src="currentUser.data.avatar" alt="用户头像" />
|
||||
<img :src="currentUser.data.avatar" alt="用户头像" style="width: 15px; height: 15px;" />
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@@ -777,18 +777,14 @@
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
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 {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%) scale(0.8);
|
||||
width: 30px !important;
|
||||
height: 30px !important;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: 15px !important;
|
||||
height: 15px !important;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user