fix tab title

pull/1/head
yann300 8 years ago
parent 8349e4cebd
commit d93e2c504a
  1. 16
      src/app/righthand-panel.js
  2. 3
      src/universal-dapp.js

@ -8,6 +8,20 @@ var analysisTab = require('./analysis-tab')
var debuggerTab = require('./debugger-tab')
var filesTab = require('./files-tab')
var csjs = require('csjs-inject')
var css = csjs`
.options {
float: left;
padding: 0.7em 0.3em;
font-size: 0.9em;
cursor: pointer;
background-color: transparent;
margin-right: 0.5em;
font-size: 1em;
}
`
// ------------------------------------------------------------------
module.exports = RighthandPanel
@ -39,6 +53,8 @@ function RighthandPanel (container, appAPI, events, opts) {
filesTab(optionViews, appAPI, events, opts)
container.appendChild(element)
;[...container.querySelectorAll('#header #options li')].forEach((el) => { el.classList.add(css.options) })
// ----------------- toggle right hand panel -----------------
var hidingRHP = false

@ -106,9 +106,6 @@ var cssInstance = csjs`
}
`
;[...document.querySelectorAll('#header #options li')].forEach(addCss)
function addCss (el) { el.classList.add(css.options) }
/*
trigger debugRequested
*/

Loading…
Cancel
Save