Commit 7a90aee4 authored by yann300's avatar yann300

styling

parent 2846b482
...@@ -38,7 +38,7 @@ module.exports = React.createClass({ ...@@ -38,7 +38,7 @@ module.exports = React.createClass({
ret.push( ret.push(
<tr key={key}> <tr key={key}>
<td> <td>
<pre>{this.props.data[key]}</pre> <pre style={style.font} >{this.props.data[key]}</pre>
</td> </td>
</tr>) </tr>)
} }
......
'use strict' 'use strict'
module.exports = { module.exports = {
wrapper: { font: {
'fontFamily': 'arial,sans-serif' 'fontFamily': 'arial,sans-serif'
}, },
container: { container: {
...@@ -11,7 +11,8 @@ module.exports = { ...@@ -11,7 +11,8 @@ module.exports = {
'fontStyle': 'italic' 'fontStyle': 'italic'
}, },
instructionsList: { instructionsList: {
'width': '320px' 'width': '320px',
'height': '300px'
}, },
transactionInfo: { transactionInfo: {
'marginTop': '5px' 'marginTop': '5px'
...@@ -22,7 +23,7 @@ module.exports = { ...@@ -22,7 +23,7 @@ module.exports = {
'width': '600px' 'width': '600px'
}, },
tableContainer: { tableContainer: {
'height': '150px', 'height': '300px',
'overflowY': 'auto' 'overflowY': 'auto'
}, },
table: { table: {
......
...@@ -37,7 +37,7 @@ module.exports = React.createClass({ ...@@ -37,7 +37,7 @@ module.exports = React.createClass({
render: function () { render: function () {
return ( return (
<div style={style.wrapper}> <div style={style.font}>
<h1 style={style.container}>Eth Debugger</h1> <h1 style={style.container}>Eth Debugger</h1>
<TxBrowser onNewTxRequested={this.startDebugging} /> <TxBrowser onNewTxRequested={this.startDebugging} />
<StepManager ref='stepManager' onStepChanged={this.stepChanged} /> <StepManager ref='stepManager' onStepChanged={this.stepChanged} />
......
'use strict' 'use strict'
var React = require('react') var React = require('react')
var BasicPanel = require('./basicPanel') var BasicPanel = require('./basicPanel')
var style = require('./basicStyles')
module.exports = React.createClass({ module.exports = React.createClass({
contextTypes: { contextTypes: {
...@@ -50,13 +51,13 @@ module.exports = React.createClass({ ...@@ -50,13 +51,13 @@ module.exports = React.createClass({
ret.push( ret.push(
<tr key={key}> <tr key={key}>
<td> <td>
<pre>{memSlot.address}</pre> <pre style={style.font}>{memSlot.address}</pre>
</td> </td>
<td> <td>
<pre>{memSlot.content.raw}</pre> <pre style={style.font}>{memSlot.content.raw}</pre>
</td> </td>
<td> <td>
<pre>{memSlot.content.ascii}</pre> <pre style={style.font}>{memSlot.content.ascii}</pre>
</td> </td>
</tr>) </tr>)
} }
......
...@@ -55,7 +55,7 @@ module.exports = React.createClass({ ...@@ -55,7 +55,7 @@ module.exports = React.createClass({
remaining gas remaining gas
</td> </td>
<td> <td>
{this.state.remaingas} {this.state.remainingGas}
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -119,7 +119,7 @@ module.exports = React.createClass({ ...@@ -119,7 +119,7 @@ module.exports = React.createClass({
console.log(error) console.log(error)
} else { } else {
self.setState({ self.setState({
remaininGas: remaingas remainingGas: remaingas
}) })
} }
}) })
......
'use strict' 'use strict'
var React = require('react') var React = require('react')
var BasicPanel = require('./basicPanel') var BasicPanel = require('./basicPanel')
var style = require('./basicStyles')
module.exports = React.createClass({ module.exports = React.createClass({
contextTypes: { contextTypes: {
...@@ -49,10 +50,10 @@ module.exports = React.createClass({ ...@@ -49,10 +50,10 @@ module.exports = React.createClass({
ret.push( ret.push(
<tr key={key}> <tr key={key}>
<td> <td>
<pre>{key}</pre> <pre style={style.font} >{key}</pre>
</td> </td>
<td> <td>
<pre>{data[key]}</pre> <pre style={style.font}>{data[key]}</pre>
</td> </td>
</tr>) </tr>)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment