use monospace for memory

pull/7/head
yann300 8 years ago
parent 5238b8c862
commit 0edf9f8839
  1. 6
      src/ui/MemoryPanel.js
  2. 4
      src/ui/TreeView.js
  3. 3
      src/ui/styles/dropdownPanel.js

@ -6,7 +6,11 @@ var yo = require('yo-yo')
function MemoryPanel (_parent, _traceManager) {
this.parent = _parent
this.traceManager = _traceManager
this.basicPanel = new DropdownPanel('Memory', {json: true})
this.basicPanel = new DropdownPanel('Memory', {
json: true,
css: {
'font-family': 'monospace'
}})
this.init()
}

@ -11,8 +11,8 @@ class TreeView {
this.beforeJsonNodeRendered = opts.beforeJsonNodeRendered || noop
this.beforeJsonValueRendered = opts.beforeJsonValueRendered || noop
this.view = null
this.cssLabel = ui.formatCss(style.label)
this.cssList = ui.formatCss(style.list)
this.cssLabel = ui.formatCss(opts.css || {}, style.label)
this.cssList = ui.formatCss(opts.css || {}, style.list)
}
render (json) {

@ -13,8 +13,7 @@ module.exports = {
},
content: {
'color': '#111111',
'width': '100%',
'font-family': 'monospace'
'width': '100%'
},
inner: {
'padding': '2px',

Loading…
Cancel
Save