From 90a274959bf916cc91717093316bb154adab07dd Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 16 May 2019 15:10:18 +0200 Subject: [PATCH] styling --- src/app/debugger/debuggerUI/TxBrowser.js | 16 +++++----------- src/app/debugger/debuggerUI/VmDebugger.js | 2 ++ .../debuggerUI/vmDebugger/DropdownPanel.js | 2 +- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/app/debugger/debuggerUI/TxBrowser.js b/src/app/debugger/debuggerUI/TxBrowser.js index 3d6430b1dc..90a957fbca 100644 --- a/src/app/debugger/debuggerUI/TxBrowser.js +++ b/src/app/debugger/debuggerUI/TxBrowser.js @@ -80,21 +80,13 @@ TxBrowser.prototype.setState = function (state) { } } -TxBrowser.prototype.setTx = function (blockNumber, txNumber) { - this.blockNumber = blockNumber - this.txNumber = txNumber - if (this.view) { - yo.update(this.view, this.render()) - } -} - TxBrowser.prototype.render = function () { var self = this var view = yo`
- - + +
@@ -102,7 +94,9 @@ TxBrowser.prototype.render = function () {
` - + if (this.debugging) { + view.querySelectorAll('input').forEach(element => { element.setAttribute('disabled', '') }) + } if (!this.view) { this.view = view } diff --git a/src/app/debugger/debuggerUI/VmDebugger.js b/src/app/debugger/debuggerUI/VmDebugger.js index 46c1e8f734..7c1ef392ba 100644 --- a/src/app/debugger/debuggerUI/VmDebugger.js +++ b/src/app/debugger/debuggerUI/VmDebugger.js @@ -16,8 +16,10 @@ var DropdownPanel = require('./vmDebugger/DropdownPanel') var css = csjs` .asmCode { + width: 100%; } .stepDetail { + width: 100%; } .vmheadView { margin-top:10px; diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 6d67cfffcb..4c8f29b74c 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -121,7 +121,7 @@ DropdownPanel.prototype.render = function (overridestyle, node) {
` var view = yo` -
+