Skip to content

Commit

Permalink
🐛 Fix too wide elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 28, 2023
1 parent 15d4bf4 commit df4b94a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fit-the-screen-consisting-of-two-monitors.user.js
Expand Up @@ -27,7 +27,8 @@
// get elements spanning center line
if (
elem.offsetLeft < window.innerWidth / 2 &&
elem.offsetLeft + elem.offsetWidth > window.innerWidth / 2
elem.offsetLeft + elem.offsetWidth > window.innerWidth / 2 &&
elem.offsetLeft + elem.offsetWidth < window.innerWidth
)
elements.push(elem);
}
Expand All @@ -49,4 +50,5 @@
// https://www.baidu.com/
// https://greasyfork.org/zh-CN/scripts/419081-%E7%9F%A5%E4%B9%8E%E5%A2%9E%E5%BC%BA
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
// https://nodejs.org/api/fs.html
// https://poe.com/

0 comments on commit df4b94a

Please sign in to comment.