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