[S] Fix tooltip startup glitch

tmp
Azalea 2024-04-16 23:48:41 +09:00
parent 14f6b9c759
commit 65f8b587af
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ export function tooltip(element: HTMLElement, params: { text: string } | string)
if (!document.querySelector('.aqua-tooltip')) {
const div = document.createElement('div')
div.classList.add('aqua-tooltip')
// Initially hidden
div.style.display = 'none'
document.body.appendChild(div)
}