Merge branch 'master' into frontier

这个提交包含在:
binary-husky
2023-12-25 21:27:04 +08:00
当前提交 49ca03ca06
共有 2 个文件被更改,包括 9 次插入5 次删除

查看文件

@@ -211,9 +211,13 @@ function get_elements(consider_state_panel = false) {
// 调整高度
const chatbot_height_exceed = 15;
const chatbot_height_exceed_m = 10;
if (panel3.bottom >= window.innerHeight - chatbot_height_exceed) {
b_panel = Math.max(panel1.bottom, panel2.bottom, panel3.bottom)
if (b_panel >= window.innerHeight - chatbot_height_exceed) {
height_target = window.innerHeight - chatbot.getBoundingClientRect().top - chatbot_height_exceed_m;
}
else if (b_panel < window.innerHeight * 0.75) {
height_target = window.innerHeight * 0.8;
}
}
var chatbot_height = parseInt(chatbot_height);
return { height_target, chatbot_height, chatbot };