diff --git a/src/app/panels/editor-panel.js b/src/app/panels/editor-panel.js index 604c15d5e7..d1bf822124 100644 --- a/src/app/panels/editor-panel.js +++ b/src/app/panels/editor-panel.js @@ -8,9 +8,28 @@ var { TabProxy } = require('./tab-proxy.js') var ContextualListener = require('../editor/contextualListener') var ContextView = require('../editor/contextView') -var styles = require('./styles/editor-panel-styles') -var cssTabs = styles.cssTabs -var css = styles.css + +var csjs = require('csjs-inject') + +var css = csjs` + .editorpanel { + display : flex; + flex-direction : column; + height : 100%; + } + .content { + position : relative; + display : flex; + flex-direction : column; + height : 100%; + width : 100%; + } + .contextviewcontainer{ + width : 100%; + height : 20px; + background-color : var(--main-bg-color); + } +` class EditorPanel { constructor (appStore, appManager, mainPanelComponent) { @@ -102,9 +121,6 @@ class EditorPanel { self._deps.txListener.setListenOnNetwork(listenOnNetWork) }) } - if (document && document.head) { - document.head.appendChild(cssTabs) - } } _adjustLayout (direction, delta) { var limitUp = 0 diff --git a/src/app/panels/tab-proxy.js b/src/app/panels/tab-proxy.js index 9abc6f3295..ff8d8ee733 100644 --- a/src/app/panels/tab-proxy.js +++ b/src/app/panels/tab-proxy.js @@ -4,9 +4,6 @@ const EventEmitter = require('events') require('remix-tabs') -var styles = require('./styles/editor-panel-styles') -var css = styles.css - export class TabProxy { constructor (fileManager, editor, appStore, appManager) { this.event = new EventEmitter() @@ -103,22 +100,16 @@ export class TabProxy { this._view.filetabs.canAdd = false this._view.tabs = yo` -