style fixes

pull/1/head
LianaHus 5 years ago
parent 80ea12bcf1
commit b3f54604ca
  1. 8
      src/app/tabs/debugger/debuggerUI/VmDebugger.js
  2. 2
      src/app/tabs/debugger/debuggerUI/vmDebugger/MemoryPanel.js
  3. 2
      src/app/tabs/debugger/debuggerUI/vmDebugger/StackPanel.js
  4. 8
      src/app/tabs/debugger/debuggerUI/vmDebugger/utils/SolidityTypeFormatter.js

@ -123,8 +123,8 @@ function VmDebugger (vmDebuggerLogic) {
}
VmDebugger.prototype.renderHead = function () {
var headView = yo`
<div id='vmheadView' class="${css.vmheadView} container">
const headView = yo`
<div id="vmheadView" class="${css.vmheadView} container">
<div class="row" >
<div class="${css.asmCode} column">${this.asmCode.render()}</div>
<div class="${css.stepDetail} column">${this.stepDetail.render()}</div>
@ -143,8 +143,8 @@ VmDebugger.prototype.remove = function () {
}
VmDebugger.prototype.render = function () {
var view = yo`
<div id='vmdebugger'>
const view = yo`
<div id="vmdebugger">
<div>
${this.solidityLocals.render()}
${this.solidityState.render()}

@ -15,7 +15,7 @@ MemoryPanel.prototype.update = function (calldata) {
}
MemoryPanel.prototype.render = function () {
return yo`<div id='memorypanel' class='text-monospace small'>${this.basicPanel.render()}</div>`
return yo`<div id="memorypanel" class="text-monospace small">${this.basicPanel.render()}</div>`
}
module.exports = MemoryPanel

@ -11,7 +11,7 @@ StackPanel.prototype.update = function (calldata) {
}
StackPanel.prototype.render = function () {
return yo`<div id='stackpanel' class='text-monospace small' >${this.basicPanel.render()}</div>`
return yo`<div id="stackpanel" class="text-monospace small">${this.basicPanel.render()}</div>`
}
module.exports = StackPanel

@ -7,12 +7,12 @@ module.exports = {
}
function formatSelf (key, data) {
var style = fontColor(data)
var keyStyle = data.isProperty ? 'color: var(--info)' : ''
const style = fontColor(data)
const keyStyle = data.isProperty ? 'color: var(--info)' : ''
if (data.type === 'string') {
data.self = JSON.stringify(data.self)
}
return yo `<label style='${keyStyle};white-space:pre-wrap;'> ${' ' + key}:<label style=${style}>${' ' + data.self}</label><label style='font-style:italic'> ${data.isProperty || !data.type ? '' : ' ' + data.type}</label></label>`
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty || !data.type ? '' : ' ' + data.type}</label></label>`
}
function extractData (item, parent, key) {
@ -55,7 +55,7 @@ function extractData (item, parent, key) {
}
function fontColor (data) {
var color = 'var(--primary)'
let color = 'var(--primary)'
if (data.isArray || data.isStruct || data.isMapping) {
color = 'var(--info)'
} else if (

Loading…
Cancel
Save