Skip to content

Commit

Permalink
🔧 #145 捕获按钮不检查屏幕尺寸
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed May 8, 2024
1 parent 547dabf commit 367a505
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/js/chat-room.js
Original file line number Diff line number Diff line change
Expand Up @@ -2181,8 +2181,8 @@ ${result.info.msg}
var needWidth = sideDom.offsetWidth + chatDom.offsetWidth + 300; // 最小宽度为300px
if (needWidth > window.innerWidth) {
// 删除用户捕获相关的组件和按钮
$("#robotBtn").remove();
$("#robotBox").remove();
//$("#robotBtn").remove();
//$("#robotBox").remove();
} else {
// 自动调整css样式
var chatDomHeight = window.innerHeight - document.getElementsByClassName('nav')[0].offsetHeight;
Expand Down
Loading

0 comments on commit 367a505

Please sign in to comment.