From 818a578e2b7a87680a80e75a582a6e986c5d9650 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 1 Jul 2020 13:19:53 +0200 Subject: [PATCH] Ui improvements --- src/app/tabs/debugger/debuggerUI.js | 14 +++++-------- .../debugger/debuggerUI/ButtonNavigator.js | 4 ++-- src/app/tabs/debugger/debuggerUI/Slider.js | 2 +- .../tabs/debugger/debuggerUI/StepManager.js | 9 +++++---- src/app/tabs/debugger/debuggerUI/TxBrowser.js | 16 ++------------- .../tabs/debugger/debuggerUI/VmDebugger.js | 20 ++++++------------- .../debugger/debuggerUI/styles/basicStyles.js | 8 -------- .../debuggerUI/vmDebugger/CodeListView.js | 4 ++-- .../debuggerUI/vmDebugger/DropdownPanel.js | 9 +++++---- src/app/ui/TreeView.js | 3 +-- 10 files changed, 29 insertions(+), 60 deletions(-) diff --git a/src/app/tabs/debugger/debuggerUI.js b/src/app/tabs/debugger/debuggerUI.js index f45723a9a2..12398250e4 100644 --- a/src/app/tabs/debugger/debuggerUI.js +++ b/src/app/tabs/debugger/debuggerUI.js @@ -22,10 +22,6 @@ var css = csjs` .statusMessage { margin-left: 15px; } - .innerShift { - padding: 2px; - margin-left: 10px; - } ` class DebuggerUI { @@ -185,16 +181,16 @@ class DebuggerUI { } render () { - this.debuggerPanelsView = yo`
` - this.debuggerHeadPanelsView = yo`
` - this.stepManagerView = yo`
` + this.debuggerPanelsView = yo`
` + this.debuggerHeadPanelsView = yo`
` + this.stepManagerView = yo`
` var view = yo`
-
+
${this.txBrowser.render()} - ${this.debuggerHeadPanelsView} ${this.stepManagerView} + ${this.debuggerHeadPanelsView}
${this.statusMessage}
${this.debuggerPanelsView} diff --git a/src/app/tabs/debugger/debuggerUI/ButtonNavigator.js b/src/app/tabs/debugger/debuggerUI/ButtonNavigator.js index 8c03ae4aa7..9a84280ba4 100644 --- a/src/app/tabs/debugger/debuggerUI/ButtonNavigator.js +++ b/src/app/tabs/debugger/debuggerUI/ButtonNavigator.js @@ -45,14 +45,14 @@ function ButtonNavigator () { ButtonNavigator.prototype.render = function () { var self = this var view = yo`
-
+
-
+
diff --git a/src/app/tabs/debugger/debuggerUI/Slider.js b/src/app/tabs/debugger/debuggerUI/Slider.js index d67be06dc2..db1a8dc445 100644 --- a/src/app/tabs/debugger/debuggerUI/Slider.js +++ b/src/app/tabs/debugger/debuggerUI/Slider.js @@ -43,7 +43,7 @@ class Slider { render () { var self = this var view = yo`
-
` if (!this.view) { diff --git a/src/app/tabs/debugger/debuggerUI/StepManager.js b/src/app/tabs/debugger/debuggerUI/StepManager.js index 045f9609a4..eef36e1778 100644 --- a/src/app/tabs/debugger/debuggerUI/StepManager.js +++ b/src/app/tabs/debugger/debuggerUI/StepManager.js @@ -49,10 +49,11 @@ StepManager.prototype.remove = function () { } StepManager.prototype.render = function () { - return yo`
- ${this.slider.render()} - ${this.buttonNavigator.render()} -
` + return yo` +
+ ${this.slider.render()} + ${this.buttonNavigator.render()} +
` } module.exports = StepManager diff --git a/src/app/tabs/debugger/debuggerUI/TxBrowser.js b/src/app/tabs/debugger/debuggerUI/TxBrowser.js index f395f904cb..302ae5ca21 100644 --- a/src/app/tabs/debugger/debuggerUI/TxBrowser.js +++ b/src/app/tabs/debugger/debuggerUI/TxBrowser.js @@ -11,11 +11,6 @@ var css = csjs` display: flex; flex-direction: column; } - .txinputs { - width: 100%; - display: flex; - justify-content: center; - } .txinput { width: inherit; font-size: small; @@ -23,16 +18,9 @@ var css = csjs` overflow: hidden; text-overflow: ellipsis; } - .txbuttons { - width: 100%; - display: flex; - justify-content: center; - } .txbutton { width: inherit; } - .txbuttonstart { - } .txbutton:hover { } .vmargin { @@ -110,10 +98,10 @@ TxBrowser.prototype.render = function () { var view = yo`
-
+
${this.state.txNumberInput}
-
+
${txButton}
diff --git a/src/app/tabs/debugger/debuggerUI/VmDebugger.js b/src/app/tabs/debugger/debuggerUI/VmDebugger.js index 75706255fa..7642715a4c 100644 --- a/src/app/tabs/debugger/debuggerUI/VmDebugger.js +++ b/src/app/tabs/debugger/debuggerUI/VmDebugger.js @@ -15,15 +15,6 @@ var SolidityLocals = require('./vmDebugger/SolidityLocals') var FullStoragesChangesPanel = require('./vmDebugger/FullStoragesChanges') var DropdownPanel = require('./vmDebugger/DropdownPanel') -var css = csjs` - .stepDetail { - line-height: 20%; - } - .vmheadView { - margin-top:10px; - } -` - function VmDebugger (vmDebuggerLogic) { var self = this this.view @@ -135,18 +126,19 @@ function VmDebugger (vmDebuggerLogic) { VmDebugger.prototype.renderHead = function () { this.solidityPanel = yo` -