Skip to content

Commit 50afe5d

Browse files
committed
Renamed appIs<High|Low> to more accurate appIsToo<High|Low> ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 4739698 commit 50afe5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.4.21.1
151+
// @version 2025.4.21.2
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
154154
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
@@ -1687,10 +1687,10 @@
16871687
appDiv: appDiv.getBoundingClientRect(), toggleBtn: toggleElem.getBoundingClientRect(),
16881688
hoverMenu: hoverMenus[menuType].div.getBoundingClientRect()
16891689
}
1690-
const appIsHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1691-
appIsLow = rects.hoverMenu.bottom > ( innerHeight -15 )
1690+
const appIsTooHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1691+
appIsTooLow = rects.hoverMenu.bottom > ( innerHeight -15 )
16921692
hoverMenus[menuType].div.style.top = `${ rects.toggleBtn.top - rects.appDiv.top +(
1693-
menuType == 'pin' && appIsHigh || menuType == 'api' && !appIsLow
1693+
menuType == 'pin' && appIsTooHigh || menuType == 'api' && !appIsTooLow
16941694
? /* point down */ 29 : /* point up */ - rects.hoverMenu.height -13 )}px`
16951695
hoverMenus[menuType].rightPos = hoverMenus[menuType].rightPos
16961696
|| rects.appDiv.right - event.clientX - hoverMenus[menuType].div.offsetWidth/2

0 commit comments

Comments
 (0)