From 54c84b6681e6e52b8f012bd669e6e261857d4c9a Mon Sep 17 00:00:00 2001 From: lt Date: Mon, 27 Apr 2026 19:36:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E9=80=82=E9=85=8D=E4=BC=98=E5=8C=96=20(logs,=20users)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - logs.html: 移动端控制栏垂直布局,日志卡片优化 - users.html: 新增移动端用户卡片列表,隐藏表格 - 统一小屏幕字体和间距 --- platform/frontend/logs.html | 9 +++++++++ platform/frontend/users.html | 37 +++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/platform/frontend/logs.html b/platform/frontend/logs.html index 76323d3..7668a92 100644 --- a/platform/frontend/logs.html +++ b/platform/frontend/logs.html @@ -29,6 +29,15 @@ .mobile-nav { display: flex; } .content-area { padding: 16px; padding-bottom: 80px; } } + + /* logs.html 移动端优化 */ + @media (max-width: 768px) { + .log-controls { flex-direction: column; gap: 8px; } + .log-controls .el-select, .log-controls .el-date-picker { width: 100% !important; } + .el-card { margin: 0 -16px; border-radius: 0; min-height: calc(100vh - 180px); } + .el-card .el-card__body { padding: 12px; } + pre { font-size: 11px; line-height: 1.4; } + } diff --git a/platform/frontend/users.html b/platform/frontend/users.html index eecff8d..cf87dfa 100644 --- a/platform/frontend/users.html +++ b/platform/frontend/users.html @@ -29,6 +29,41 @@ .mobile-nav { display: flex; } .content-area { padding: 16px; padding-bottom: 80px; } } + + /* users.html 移动端优化 */ + @media (max-width: 768px) { + .user-table { display: none; } + .user-card-list { display: block; margin: 0 -16px; } + .user-card { + background: white; + border-radius: 8px; + padding: 16px; + margin-bottom: 12px; + box-shadow: 0 2px 8px rgba(0,0,0,0.08); + } + .user-card-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; + } + .user-card-name { font-size: 16px; font-weight: 600; } + .user-card-meta { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + font-size: 12px; + color: #606266; + margin-bottom: 12px; + } + .user-card-actions { + display: flex; + gap: 8px; + justify-content: flex-end; + padding-top: 8px; + border-top: 1px solid #ebeef5; + } + } @@ -56,7 +91,7 @@

用户列表

+ 新建用户 - +