Skip to content

Commit 4739698

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/bravegpt]
1 parent 94413db commit 4739698

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/bravegpt/bravegpt.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-Brave Search (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.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154154
// @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
@@ -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 +103 ),
1691-
appIsLow = rects.hoverMenu.bottom > ( innerHeight -15 )
1690+
const appIsTooHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +103 ),
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)