用户信息显示优化

This commit is contained in:
liuwei
2025-04-15 08:59:54 +08:00
parent 53204d1473
commit ec153e135d

View File

@@ -655,137 +655,25 @@
}
.user-card .el-card__body {
padding: 10px;
padding: 8px;
}
.user-info-container {
padding: 5px;
padding: 0;
display: flex;
flex-direction: column;
}
.user-avatar-container {
text-align: center;
margin-bottom: 15px;
}
.user-avatar-container img {
width: 80px;
height: 80px;
border-radius: 50%;
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.user-info-empty {
text-align: center;
color: #909399;
padding: 20px 0;
}
.user-info-empty i {
font-size: 24px;
margin-bottom: 10px;
}
.user-info-header {
display: flex;
align-items: center;
}
.user-avatar {
margin-right: 15px;
}
.user-avatar img {
width: 60px;
height: 60px;
border-radius: 50%;
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.user-details {
flex: 1;
}
.user-nickname {
font-size: 18px;
font-weight: bold;
color: #303133;
margin-bottom: 5px;
}
.user-wxid {
font-size: 14px;
color: #606266;
}
/* 系统信息容器样式 */
.system-info-container {
background-color: #f9f9f9;
border-radius: 4px;
padding: 15px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.system-info-row {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
line-height: 1.5;
}
.info-label {
color: #606266;
font-weight: 500;
}
.info-value {
color: #303133;
text-align: right;
}
.system-update-time {
text-align: right;
font-size: 12px;
color: #909399;
margin-top: auto;
}
/* 系统状态标题栏样式 */
.el-card__header {
position: relative;
}
.system-info-summary {
position: absolute;
right: 20px;
font-size: 12px;
color: #909399;
}
/* 用户信息容器样式调整 */
.user-info-container {
background-color: #f9f9f9;
border-radius: 4px;
padding: 15px;
height: 100%;
display: flex;
flex-direction: column;
}
.user-avatar-container {
text-align: center;
margin-bottom: 15px;
margin-bottom: 10px;
}
.user-avatar-container img {
width: 80px;
height: 80px;
width: 56px; /* 原来80px的70% */
height: 56px; /* 原来80px的70% */
border-radius: 50%;
border: 2px solid #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
@@ -794,16 +682,17 @@
.user-info-details {
display: flex;
flex-direction: column;
gap: 8px;
gap: 5px; /* 原来8px的缩小版 */
}
.user-info-item {
display: flex;
align-items: center;
font-size: 12px; /* 缩小字体 */
}
.user-info-label {
width: 70px;
width: 50px; /* 原来70px的缩小版 */
color: #606266;
font-weight: 500;
flex-shrink: 0;
@@ -816,7 +705,7 @@
}
.user-home-path {
font-size: 12px;
font-size: 10px; /* 原来12px的缩小版 */
}
/* 移除不再需要的样式 */