mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Fix #4954: move hints to popover
This commit is contained in:
parent
ad61b8c6a5
commit
6d50ecbda7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue