Merge pull request #128 from ethereum/uismallfix

UI fixes
pull/7/head
chriseth 8 years ago committed by GitHub
commit 0ea03645e4
  1. 14
      src/ui/ButtonNavigator.js
  2. 2
      src/ui/Ethdebugger.js
  3. 2
      src/ui/StepManager.js
  4. 2
      src/ui/styles/sliderStyles.js

@ -44,6 +44,14 @@ ButtonNavigator.prototype.render = function () {
return view return view
} }
ButtonNavigator.prototype.reset = function () {
this.intoBackDisabled = true
this.overBackDisabled = true
this.intoForwardDisabled = true
this.overForwardDisabled = true
this.nextCallDisabled = true
}
ButtonNavigator.prototype.stepChanged = function (step) { ButtonNavigator.prototype.stepChanged = function (step) {
this.intoBackDisabled = step <= 0 this.intoBackDisabled = step <= 0
this.overBackDisabled = step <= 0 this.overBackDisabled = step <= 0
@ -55,11 +63,7 @@ ButtonNavigator.prototype.stepChanged = function (step) {
var self = this var self = this
this.traceManager.getLength(function (error, length) { this.traceManager.getLength(function (error, length) {
if (error) { if (error) {
self.intoBackDisabled = true self.reset()
self.overBackDisabled = true
self.intoForwardDisabled = true
self.overForwardDisabled = true
self.nextCallDisabled = true
console.log(error) console.log(error)
} else { } else {
self.intoForwardDisabled = step >= length - 1 self.intoForwardDisabled = step >= length - 1

@ -81,7 +81,7 @@ Ethdebugger.prototype.debug = function (tx) {
Ethdebugger.prototype.render = function () { Ethdebugger.prototype.render = function () {
var view = yo`<div style=${ui.formatCss(style.font)}> var view = yo`<div style=${ui.formatCss(style.font)}>
<div style=${ui.formatCss({'max-width': '51%'}, style.innerShift)}> <div style=${ui.formatCss(style.innerShift)}>
${this.txBrowser.render()} ${this.txBrowser.render()}
${this.stepManager.render()} ${this.stepManager.render()}
</div> </div>

@ -56,7 +56,7 @@ StepManager.prototype.render = function () {
StepManager.prototype.reset = function () { StepManager.prototype.reset = function () {
this.slider.setValue(0) this.slider.setValue(0)
this.currentStepIndex = 0 this.currentStepIndex = 0
this.buttonNavigator.stepChanged(0) this.buttonNavigator.reset()
} }
StepManager.prototype.init = function () { StepManager.prototype.init = function () {

@ -1,6 +1,6 @@
'use strict' 'use strict'
module.exports = { module.exports = {
rule: { rule: {
'width': '98%' 'width': '100%'
} }
} }

Loading…
Cancel
Save