From d93e2c504acf1177aa0df79132246284dbf96d5b Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 15 Jun 2017 15:07:19 +0200 Subject: [PATCH] fix tab title --- src/app/righthand-panel.js | 16 ++++++++++++++++ src/universal-dapp.js | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/app/righthand-panel.js b/src/app/righthand-panel.js index 3a70abafdb..afd1120407 100644 --- a/src/app/righthand-panel.js +++ b/src/app/righthand-panel.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 diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 17b64b0ac2..6b0b3c7fbb 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -106,9 +106,6 @@ var cssInstance = csjs` } ` -;[...document.querySelectorAll('#header #options li')].forEach(addCss) -function addCss (el) { el.classList.add(css.options) } - /* trigger debugRequested */