last corrections of UI

pull/11/head
LianaHus 4 years ago committed by ioedeveloper
parent 96364100ea
commit 02265ee0cb
  1. 17
      apps/remix-ide/src/app/files/file-explorer.js
  2. 3
      apps/remix-ide/src/app/tabs/debugger/debuggerUI/vmDebugger/CodeListView.js
  3. 3
      apps/remix-ide/src/app/tabs/debugger/debuggerUI/vmDebugger/StepDetail.js
  4. 11
      apps/remix-ide/src/app/ui/TreeView.js

@ -636,7 +636,7 @@ fileExplorer.prototype.renderMenuItems = function () {
<label <label
id=${action} id=${action}
data-id="fileExplorerUploadFile${action}" data-id="fileExplorerUploadFile${action}"
class="${icon} ${css.newFile}" class="${icon} mb-0 ${css.newFile}"
title="${title}" title="${title}"
> >
<input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onchange=${(event) => { <input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onchange=${(event) => {
@ -647,13 +647,14 @@ fileExplorer.prototype.renderMenuItems = function () {
` `
} else { } else {
return yo` return yo`
<span <span
id=${action} id=${action}
data-id="fileExplorerNewFile${action}" data-id="fileExplorerNewFile${action}"
onclick=${(event) => { event.stopPropagation(); this[ action ]() }} onclick=${(event) => { event.stopPropagation(); this[ action ]() }}
class="newFile ${icon} ${css.newFile}" class="newFile ${icon} ${css.newFile}"
title=${title}> title=${title}
</span> >
</span>
` `
} }
}) })

@ -44,9 +44,6 @@ CodeListView.prototype.indexChanged = function (index) {
this.itemSelected.style.setProperty('border-color', 'var(--primary)') this.itemSelected.style.setProperty('border-color', 'var(--primary)')
this.itemSelected.style.setProperty('border-style', 'solid') this.itemSelected.style.setProperty('border-style', 'solid')
this.itemSelected.setAttribute('selected', 'selected') this.itemSelected.setAttribute('selected', 'selected')
if (this.itemSelected.firstChild) {
//this.itemSelected.firstChild.setAttribute('style', 'margin-left: 2px')
}
codeView.scrollTop = this.itemSelected.offsetTop - parseInt(codeView.offsetTop) codeView.scrollTop = this.itemSelected.offsetTop - parseInt(codeView.offsetTop)
} }

@ -2,7 +2,8 @@ var yo = require('yo-yo')
var DropdownPanel = require('./DropdownPanel') var DropdownPanel = require('./DropdownPanel')
function StepDetail () { function StepDetail () {
this.basicPanel = new DropdownPanel('Step detail', {json: true, displayContentOnly: true}) this.basicPanel = new DropdownPanel('Step details', {json: true, displayContentOnly: false})
this.basicPanel.show()
this.detail = { 'vm trace step': '-', 'execution step': '-', 'add memory': '', 'gas': '', 'remaining gas': '-', 'loaded address': '-' } this.detail = { 'vm trace step': '-', 'execution step': '-', 'add memory': '', 'gas': '', 'remaining gas': '-', 'loaded address': '-' }
} }

@ -28,10 +28,11 @@ var css = csjs`
} }
.label_key { .label_key {
min-width: 15%; min-width: 15%;
word-break: break-all; max-width: 80%;
word-break: break-word;
} }
.label_value { .label_value {
min-width: 30%; min-width: 10%;
} }
` `
@ -89,7 +90,7 @@ class TreeView {
var label = yo` var label = yo`
<div key=${keyPath} data-id="treeViewDiv${keyPath}" class="d-flex flex-row align-items-center"> <div key=${keyPath} data-id="treeViewDiv${keyPath}" class="d-flex flex-row align-items-center">
${caret} ${caret}
<span>${self.formatSelf(key, data, li)}</span> <span class="w-100">${self.formatSelf(key, data, li)}</span>
</div>` </div>`
const expanded = self.expandPath.includes(keyPath) const expanded = self.expandPath.includes(keyPath)
li.appendChild(label) li.appendChild(label)
@ -169,8 +170,8 @@ class TreeView {
formatSelfDefault (key, data) { formatSelfDefault (key, data) {
return yo` return yo`
<div class="d-flex flex-row ${css.label_item}"> <div class="d-flex mb-1 flex-row ${css.label_item}">
<label class="font-weight-bold pr-1 ${css.label_key}">${key}:</label> <label class="small font-weight-bold pr-1 ${css.label_key}">${key}:</label>
<label class="m-0 ${css.label_value}">${data.self}</label> <label class="m-0 ${css.label_value}">${data.self}</label>
</div> </div>
` `

Loading…
Cancel
Save