调整卡片高度
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-row">
|
<div class="user-info-item">
|
||||||
<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-row">
|
<div class="user-info-item">
|
||||||
<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-row" v-if="currentUser.data.mobile">
|
<div class="user-info-item" 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-row" v-if="currentUser.data.home">
|
<div class="user-info-item" 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,28 +46,40 @@
|
|||||||
<div slot="header">
|
<div slot="header">
|
||||||
<span>系统信息</span>
|
<span>系统信息</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-info-container">
|
<el-row :gutter="20">
|
||||||
<div class="system-info-row">
|
<el-col :span="8">
|
||||||
<span class="info-label">操作系统:</span>
|
<div class="system-info-item">
|
||||||
<span class="info-value">{% raw %}{{ systemInfo.os }} {{ systemInfo.os_version }}{% endraw %}</span>
|
<div class="system-info-row">
|
||||||
</div>
|
<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">Python版本:</span>
|
</div>
|
||||||
<span class="info-value">{% raw %}{{ systemInfo.python_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">运行时间:</span>
|
</div>
|
||||||
<span class="info-value">{% raw %}{{ formattedUptime }}{% endraw %}</span>
|
</div>
|
||||||
</div>
|
</el-col>
|
||||||
<div class="system-info-row">
|
<el-col :span="8">
|
||||||
<span class="info-label">打开文件数:</span>
|
<div class="system-info-item">
|
||||||
<span class="info-value">{% raw %}{{ systemInfo.open_files }}{% endraw %}</span>
|
<div class="system-info-row">
|
||||||
</div>
|
<span class="info-label">运行时间:</span>
|
||||||
<div class="system-info-row">
|
<span class="info-value">{% raw %}{{ formattedUptime }}{% endraw %}</span>
|
||||||
<span class="info-label">最后更新:</span>
|
</div>
|
||||||
<span class="info-value">{% raw %}{{ systemInfo.timestamp }}{% endraw %}</span>
|
<div class="system-info-row">
|
||||||
</div>
|
<span class="info-label">打开文件数:</span>
|
||||||
</div>
|
<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>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -746,13 +758,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-avatar-container {
|
.user-avatar-container {
|
||||||
margin-right: 10px;
|
margin-right: 15px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-avatar-container img {
|
.user-avatar-container img {
|
||||||
width: 36px;
|
width: 50px;
|
||||||
height: 36px;
|
height: 50px;
|
||||||
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);
|
||||||
@@ -760,14 +772,15 @@
|
|||||||
|
|
||||||
.user-info-details {
|
.user-info-details {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-row {
|
.user-info-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
align-items: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-info-label {
|
.user-info-label {
|
||||||
@@ -791,7 +804,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 系统信息卡片样式 */
|
/* 系统信息卡片样式 */
|
||||||
.system-info-container {
|
.system-info-item {
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -805,25 +818,19 @@
|
|||||||
|
|
||||||
.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: 8px 15px;
|
padding: 10px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-card__body {
|
.el-card__body {
|
||||||
padding: 8px 15px;
|
padding: 10px 15px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user