From 20a498455e445806149008538efcb0661f1f39ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:33:02 +0800 Subject: [PATCH] Add files via upload --- web/static/css/style.css | 50 ++++++++++++++++++++++++++------------ web/static/i18n/en-US.json | 2 +- web/static/i18n/zh-CN.json | 2 +- web/static/js/tasks.js | 41 +++---------------------------- web/templates/index.html | 7 +++--- 5 files changed, 43 insertions(+), 59 deletions(-) diff --git a/web/static/css/style.css b/web/static/css/style.css index f7e7263d..c09b5249 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -441,7 +441,9 @@ body { /* 确保底部左右角都是圆角 */ border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; - overflow: hidden; + /* 勿用 overflow:hidden:会覆盖 .page-content 的 overflow-y:auto,任务多时无法滚动 */ + overflow-x: hidden; + overflow-y: auto; } /* 对话页面布局 */ @@ -8196,6 +8198,37 @@ header { overflow: hidden; } +/* 列表 + 底部分页同一外框,与 MCP 监控「表格 + 分页」一致 */ +.batch-queues-board { + border: 1px solid var(--border-color); + border-radius: 12px; + overflow: hidden; + width: 100%; + box-sizing: border-box; + background: var(--bg-primary); +} + +.batch-queues-board .batch-queues-list { + margin-bottom: 0; + padding: 12px 16px; + box-sizing: border-box; +} + +.batch-queues-board #batch-queues-pagination { + margin-top: 0; + padding: 0; + background: transparent; + border: none; + box-shadow: none; + border-radius: 0; + width: 100%; + box-sizing: border-box; +} + +.batch-queues-board #batch-queues-pagination .monitor-pagination { + margin-top: 0; +} + .batch-queues-filters.tasks-filters { margin-bottom: 12px; } @@ -9061,21 +9094,6 @@ header { color: var(--error-color); } -/* 任务列表与分页条分离,避免与最后一张卡片贴在一起 */ -#batch-queues-pagination.pagination-fixed { - margin-top: 8px; - padding-top: 10px; -} - -#batch-queues-pagination .pagination { - padding: 12px 16px 12px; - font-size: 0.875rem; -} - -#batch-queues-pagination .pagination-info { - color: var(--text-secondary); -} - .batch-queue-detail-info { margin-bottom: 24px; padding: 20px; diff --git a/web/static/i18n/en-US.json b/web/static/i18n/en-US.json index 7ceb3e28..12ed9bb2 100644 --- a/web/static/i18n/en-US.json +++ b/web/static/i18n/en-US.json @@ -294,7 +294,7 @@ "addTaskFailed": "Failed to add task", "confirmDeleteTask": "Delete this task?\n\nTask: {{message}}\n\nThis cannot be undone.", "deleteTaskFailed": "Failed to delete task", - "paginationShow": "{{start}}-{{end}} of {{total}}", + "paginationShow": "Show {{start}}-{{end}} of {{total}} records", "paginationPerPage": "Per page", "paginationFirst": "First", "paginationPrev": "Previous", diff --git a/web/static/i18n/zh-CN.json b/web/static/i18n/zh-CN.json index c10193b5..519bd59b 100644 --- a/web/static/i18n/zh-CN.json +++ b/web/static/i18n/zh-CN.json @@ -294,7 +294,7 @@ "addTaskFailed": "添加任务失败", "confirmDeleteTask": "确定要删除这个任务吗?\n\n任务内容: {{message}}\n\n此操作不可恢复。", "deleteTaskFailed": "删除任务失败", - "paginationShow": "显示 {{start}}-{{end}} / 共 {{total}} 条", + "paginationShow": "显示 {{start}}-{{end}} / 共 {{total}} 条记录", "paginationPerPage": "每页显示", "paginationFirst": "首页", "paginationPrev": "上一页", diff --git a/web/static/js/tasks.js b/web/static/js/tasks.js index 1bfaf76c..52964a9d 100644 --- a/web/static/js/tasks.js +++ b/web/static/js/tasks.js @@ -1156,14 +1156,14 @@ function renderBatchQueues() { renderBatchQueuesPagination(); } -// 渲染批量任务队列分页控件(参考Skills管理页面样式) +// 渲染批量任务队列分页控件(结构与样式对齐 MCP 监控 .monitor-pagination) function renderBatchQueuesPagination() { const paginationContainer = document.getElementById('batch-queues-pagination'); if (!paginationContainer) return; const { currentPage, pageSize, total, totalPages } = batchQueuesState; - // 即使只有一页也显示分页信息(参考Skills样式) + // 即使只有一页也显示分页信息(与 MCP 监控一致) if (total === 0) { paginationContainer.innerHTML = ''; return; @@ -1173,7 +1173,7 @@ function renderBatchQueuesPagination() { const start = total === 0 ? 0 : (currentPage - 1) * pageSize + 1; const end = total === 0 ? 0 : Math.min(currentPage * pageSize, total); - let paginationHTML = ' -
- -
+
+
+
+