Skip to content

Commit 4e2451f

Browse files
committed
fix(ui): 修复任务日志区域无法滚动显示全部日志的问题 - logs-wrapper: 添加height: 100%填满父容器 - logs-container: 使用flex: 1替代固定calc百分比 - log-search-toolbar: 添加flex-shrink: 0防止被压缩
1 parent bf66063 commit 4e2451f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/backEnd/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
MAX_TASKS_COUNT_LOCK = threading.Lock()
55

66

7-
VERSION = "1.8.9"
7+
VERSION = "1.8.10"

src/frontEnd/src/views/TaskDetail/components/TaskLogs.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,12 @@ function copyLogsToClipboard() {
372372
display: flex;
373373
flex-direction: column;
374374
gap: 16px;
375+
height: 100%; // 填满父容器高度
376+
overflow: hidden; // 防止溢出
375377
}
376378
377379
.log-search-toolbar {
380+
flex-shrink: 0; // 不允许工具栏被压缩
378381
background: var(--p-content-background);
379382
border-radius: 8px;
380383
border: 1px solid var(--p-content-border-color);
@@ -499,8 +502,8 @@ function copyLogsToClipboard() {
499502
}
500503
501504
.logs-container {
502-
// 自适应父容器高度,减去工具栏高度
503-
height: calc(100% - 160px);
505+
// 使用flex: 1填充剩余空间,不再使用calc百分比
506+
flex: 1;
504507
min-height: 200px;
505508
overflow-y: auto;
506509
overflow-x: auto;

0 commit comments

Comments
 (0)