Fix #4954: move hints to popover

This commit is contained in:
Oliver Blanthorn 2026-07-18 01:01:38 +02:00
parent ad61b8c6a5
commit 6d50ecbda7
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 9 additions and 0 deletions

View file

@ -572,6 +572,11 @@ export function hintPage(
modeState.hudTranslate.appendChild(modeState.hintHost)
modeState.hud.appendChild(modeState.hudTranslate)
document.documentElement.appendChild(modeState.hud)
const hud = modeState.hud as any
if (typeof hud.showPopover === "function") {
hud.setAttribute("popover", "manual")
hud.showPopover()
}
modeState.deOverlap()
window.removeEventListener("scroll", updateHudOffset)
window.addEventListener("scroll", updateHudOffset)

View file

@ -52,10 +52,14 @@ span.TridactylJSHint {
}
div.TridactylHud {
background: transparent !important;
border: 0 !important;
position: fixed !important;
inset: 0 !important;
width: 100% !important;
height: 100% !important;
margin: 0 !important;
padding: 0 !important;
z-index: 2147483647 !important;
overflow: clip !important;
pointer-events: none !important;