refactor: better shortcut indication

This commit is contained in:
Liyas Thomas
2022-10-01 19:19:43 +05:30
parent 048ac5f7a5
commit 6330548cc0
43 changed files with 57 additions and 60 deletions

View File

@@ -80,10 +80,10 @@ const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
arrow: true,
create() {
const dom = document.createElement("span")
const xmp = document.createElement("xmp")
xmp.textContent = finalEnv
const kbd = document.createElement("kbd")
kbd.textContent = finalEnv
dom.appendChild(document.createTextNode(`${envName} `))
dom.appendChild(xmp)
dom.appendChild(kbd)
dom.className = "tippy-box"
dom.dataset.theme = "tooltip"
return { dom }