调整卡片高度
This commit is contained in:
@@ -17,19 +17,19 @@
|
||||
<img :src="currentUser.data.avatar" alt="用户头像" />
|
||||
</div>
|
||||
<div class="user-info-details">
|
||||
<div class="user-info-item">
|
||||
<div class="user-info-row">
|
||||
<span class="user-info-label">昵称:</span>
|
||||
<span class="user-info-value">{% raw %}{{ currentUser.data.nickname || '未知用户' }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="user-info-item">
|
||||
<div class="user-info-row">
|
||||
<span class="user-info-label">微信ID:</span>
|
||||
<span class="user-info-value">{% raw %}{{ currentUser.data.wx_id }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="user-info-item" v-if="currentUser.data.mobile">
|
||||
<div class="user-info-row" v-if="currentUser.data.mobile">
|
||||
<span class="user-info-label">手机号:</span>
|
||||
<span class="user-info-value">{% raw %}{{ currentUser.data.mobile }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="user-info-item" v-if="currentUser.data.home">
|
||||
<div class="user-info-row" v-if="currentUser.data.home">
|
||||
<span class="user-info-label">主目录:</span>
|
||||
<span class="user-info-value user-home-path">{% raw %}{{ currentUser.data.home }}{% endraw %}</span>
|
||||
</div>
|
||||
@@ -46,40 +46,28 @@
|
||||
<div slot="header">
|
||||
<span>系统信息</span>
|
||||
</div>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">
|
||||
<div class="system-info-item">
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">操作系统:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.os }} {{ systemInfo.os_version }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">Python版本:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.python_version }}{% endraw %}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<div class="system-info-item">
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">运行时间:</span>
|
||||
<span class="info-value">{% raw %}{{ formattedUptime }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">打开文件数:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.open_files }}{% endraw %}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<div class="system-info-item">
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">最后更新:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.timestamp }}{% endraw %}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div class="system-info-container">
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">操作系统:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.os }} {{ systemInfo.os_version }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">Python版本:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.python_version }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">运行时间:</span>
|
||||
<span class="info-value">{% raw %}{{ formattedUptime }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">打开文件数:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.open_files }}{% endraw %}</span>
|
||||
</div>
|
||||
<div class="system-info-row">
|
||||
<span class="info-label">最后更新:</span>
|
||||
<span class="info-value">{% raw %}{{ systemInfo.timestamp }}{% endraw %}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -753,17 +741,18 @@
|
||||
/* 用户信息卡片样式 */
|
||||
.user-info-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.user-avatar-container {
|
||||
margin-right: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.user-avatar-container img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #fff;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
||||
@@ -773,9 +762,9 @@
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.user-info-item {
|
||||
.user-info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 2px;
|
||||
@@ -802,7 +791,7 @@
|
||||
}
|
||||
|
||||
/* 系统信息卡片样式 */
|
||||
.system-info-item {
|
||||
.system-info-container {
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
@@ -816,19 +805,25 @@
|
||||
|
||||
.info-label {
|
||||
color: #606266;
|
||||
width: 70px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: #303133;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 卡片头部样式 */
|
||||
.el-card__header {
|
||||
padding: 10px 15px;
|
||||
padding: 8px 15px;
|
||||
}
|
||||
|
||||
.el-card__body {
|
||||
padding: 10px 15px;
|
||||
padding: 8px 15px;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user