From 5a45fdd5e9019405bf77bf5a2d2d76254ebf38b3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 30 Apr 2019 15:22:27 +0200 Subject: [PATCH 1/4] Update contextView-styles.js --- src/app/editor/styles/contextView-styles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/editor/styles/contextView-styles.js b/src/app/editor/styles/contextView-styles.js index eac4ab8134..66108e32dd 100644 --- a/src/app/editor/styles/contextView-styles.js +++ b/src/app/editor/styles/contextView-styles.js @@ -2,7 +2,7 @@ var csjs = require('csjs-inject') var css = csjs` .contextview { - opacity : 0.8; + opacity : 0.6; } .container { padding : 1px 15px; @@ -14,7 +14,7 @@ var css = csjs` text-overflow : ellipsis; overflow : hidden; white-space : nowrap; - font-size : 11px; + font-size : 18px; } .type { font-style : italic; @@ -45,7 +45,7 @@ var css = csjs` } .contextviewcontainer{ position : absolute; - top : 39px; + top : 35px; z-index : 50; left : 350px; border-radius : 1px; From cf0874613288255260568299e3ed78df69d9114c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 May 2019 18:05:37 +0200 Subject: [PATCH 2/4] fix context view styling --- src/app/editor/contextView.js | 2 +- src/app/editor/styles/contextView-styles.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/editor/contextView.js b/src/app/editor/contextView.js index 43e1d7a60d..4ffc91112f 100644 --- a/src/app/editor/contextView.js +++ b/src/app/editor/contextView.js @@ -41,7 +41,7 @@ class ContextView { } render () { - const view = yo`
+ const view = yo`
${this._renderTarget()}
diff --git a/src/app/editor/styles/contextView-styles.js b/src/app/editor/styles/contextView-styles.js index 66108e32dd..d8a338400f 100644 --- a/src/app/editor/styles/contextView-styles.js +++ b/src/app/editor/styles/contextView-styles.js @@ -2,7 +2,7 @@ var csjs = require('csjs-inject') var css = csjs` .contextview { - opacity : 0.6; + opacity : 0.5; } .container { padding : 1px 15px; @@ -47,7 +47,7 @@ var css = csjs` position : absolute; top : 35px; z-index : 50; - left : 350px; + left : 50%; border-radius : 1px; border : 2px solid var(--secondary); } From 111800b4da0b4ab93292672458aa447c1a8d8ddd Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 May 2019 18:05:49 +0200 Subject: [PATCH 3/4] typo fix usage of api --- src/app.js | 2 +- src/universal-dapp.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.js b/src/app.js index e4ef25e021..d558280284 100644 --- a/src/app.js +++ b/src/app.js @@ -283,7 +283,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org registry.put({api: udapp, name: 'udapp'}) udapp.event.register('transactionBroadcasted', (txhash, networkName) => { var txLink = executionContext.txDetailsLink(networkName, txhash) - if (txLink) registry.get('logCallback').api.logCallback(yo`${txLink}`) + if (txLink) registry.get('logCallback').api(yo`${txLink}`) }) const udappUI = new UniversalDAppUI(udapp, registry) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 3dbeddfa3e..621d11e8fd 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -68,7 +68,7 @@ module.exports = class UniversalDApp extends UdappApi { executionContext.detectNetwork(cb) }, personalMode: () => { - return this.config.get('settings/personal-mode') + return this._deps.config.get('settings/personal-mode') } }) this.txRunner.event.register('transactionBroadcasted', (txhash) => { @@ -94,7 +94,7 @@ module.exports = class UniversalDApp extends UdappApi { newAccount (password, passwordPromptCb, cb) { if (!executionContext.isVM()) { - if (!this.config.get('settings/personal-mode')) { + if (!this._deps.config.get('settings/personal-mode')) { return cb('Not running in personal mode') } passwordPromptCb((passphrase) => { From 445439cc620fd46754549aba63b98852a78e384f Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 2 May 2019 18:29:49 +0200 Subject: [PATCH 4/4] contextview styling --- src/app/editor/contextView.js | 2 +- src/app/editor/styles/contextView-styles.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/editor/contextView.js b/src/app/editor/contextView.js index 4ffc91112f..0ebbfe9824 100644 --- a/src/app/editor/contextView.js +++ b/src/app/editor/contextView.js @@ -41,7 +41,7 @@ class ContextView { } render () { - const view = yo`
+ const view = yo`
${this._renderTarget()}
diff --git a/src/app/editor/styles/contextView-styles.js b/src/app/editor/styles/contextView-styles.js index d8a338400f..edf59d5609 100644 --- a/src/app/editor/styles/contextView-styles.js +++ b/src/app/editor/styles/contextView-styles.js @@ -2,8 +2,8 @@ var csjs = require('csjs-inject') var css = csjs` .contextview { - opacity : 0.5; - } + opacity : 1; + } .container { padding : 1px 15px; } @@ -47,7 +47,7 @@ var css = csjs` position : absolute; top : 35px; z-index : 50; - left : 50%; + left : 40%; border-radius : 1px; border : 2px solid var(--secondary); }