Remove hackity hack setting debug canvas styles

box-drawing
cpsdqs 7 years ago
parent 036cc23e9b
commit ba24c4f967
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 6
      js/term/debug_screen.js
  2. 7
      sass/pages/_term.scss

@ -4,11 +4,7 @@ module.exports = function attachDebugScreen (screen) {
const debugCanvas = mk('canvas')
const ctx = debugCanvas.getContext('2d')
debugCanvas.style.position = 'absolute'
// hackity hack should probably set this in CSS
debugCanvas.style.top = '6px'
debugCanvas.style.left = '6px'
debugCanvas.style.pointerEvents = 'none'
debugCanvas.classList.add('debug-canvas')
let addCanvas = function () {
if (!debugCanvas.parentNode) screen.canvas.parentNode.appendChild(debugCanvas)

@ -67,6 +67,13 @@ body.term {
}
}
.debug-canvas {
position: absolute;
top: 6px;
left: 6px;
pointer-events: none;
}
.debug-toolbar {
line-height: 1.5;
}

Loading…
Cancel
Save