Skip to content

Commit 62970ca

Browse files
committed
Raised tooltips
1 parent caa7bd8 commit 62970ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/components/chatbot/tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ window.tooltip = { // requires dom.js + <app|config|env>
8282
const elems = {
8383
appDiv: app.div, btn, btnsDiv: btn.closest('[id*=btns], [class*=btns]'), tooltipDiv: tooltip.div }
8484
const rects = {} ; Object.keys(elems).forEach(key => rects[key] = elems[key]?.getBoundingClientRect())
85-
tooltip.div.style.top = `${ rects[rects.btnsDiv ? 'btnsDiv' : 'btn'].top - rects.appDiv.top -37 }px`
85+
tooltip.div.style.top = `${ rects[rects.btnsDiv ? 'btnsDiv' : 'btn'].top - rects.appDiv.top -39 }px`
8686
tooltip.div.style.right = `${
8787
rects.appDiv.right -( rects.btn.left + rects.btn.right )/2 - rects.tooltipDiv.width/2 }px`
8888
}

0 commit comments

Comments
 (0)