mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-03-31 16:20:28 +02:00
Add files via upload
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user