From 608b197e30d34c0c0624dfc10743b9c94afbee34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Wed, 24 Dec 2025 07:09:51 +0800 Subject: [PATCH] Add files via upload --- web/static/js/monitor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/static/js/monitor.js b/web/static/js/monitor.js index a56f2e4e..f2e7954a 100644 --- a/web/static/js/monitor.js +++ b/web/static/js/monitor.js @@ -295,11 +295,11 @@ function toggleProcessDetails(progressId, assistantMessageId) { } } - // 滚动到底部以便查看展开的内容 + // 滚动到展开的详情位置,而不是滚动到底部 if (timeline && timeline.classList.contains('expanded')) { setTimeout(() => { - const messagesDiv = document.getElementById('chat-messages'); - messagesDiv.scrollTop = messagesDiv.scrollHeight; + // 使用 scrollIntoView 滚动到详情容器位置 + detailsContainer.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }, 100); } }