Skip to content

Commit

Permalink
fix: only show the tooltip on hovering title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Sep 30, 2023
1 parent a74dba3 commit 750f546
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export async function openPopup(
const floatContent = popupContent.querySelector<HTMLDivElement>('.ls-ui-float-content')
if (floatContent === null) return

floatContent.title = '' // Only show the tooltip on hovering title bar, not content

const mfe = parent.document.createElement('math-field') as MathfieldElement
mfe.style.display = 'block'
floatContent.prepend(mfe)
Expand Down

0 comments on commit 750f546

Please sign in to comment.