Skip to content

Commit cfb4f39

Browse files
committed
fix:调整页面滚动
1 parent 7f60445 commit cfb4f39

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/resources/chatPanel.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,12 @@ tool_call code {
213213
padding: 2px 5px;
214214
border-radius: 3px;
215215
color: #00b7b7;
216-
}
216+
}
217+
218+
html, body {
219+
height: 100%;
220+
margin: 0;
221+
padding: 0;
222+
overflow: hidden; /* 禁用最外层滚动 */
223+
}
224+

src/resources/chatPanelScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ async function renderMessage(role, content, index) {
290290
targetDiv.dataset.index = index;
291291
setupEditButtons();
292292
}
293-
chat.scrollTop = chat.scrollHeight;
293+
//chat.scrollTop = chat.scrollHeight;
294294
}
295295

296296
// 消息处理

0 commit comments

Comments
 (0)