Skip to content

Commit

Permalink
do not completely hide contract row
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Apr 10, 2017
1 parent bd91b6c commit 1fa433a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions assets/css/browser-solidity.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,12 @@ body {
width: 100%;
}

.contract.hide {
.contract.hidesub {
padding-bottom: 0;
margin: 0;
}

.contract.hide > *:not(.title) {
.contract.hidesub > *:not(.title) {
display: none;
}

Expand All @@ -376,7 +376,7 @@ body {
margin-top: 0.2em;
}

.contract.hide > .title:before {
.contract.hidesub > .title:before {
content: "\25B6";
}

Expand Down
6 changes: 3 additions & 3 deletions assets/css/universal-dapp.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
cursor: pointer;
}

.udapp .instance.hide .title {
.udapp .instance.hidesub .title {
margin-bottom: 0;
padding-right: 1.5em;
word-wrap: break-word;
Expand All @@ -164,11 +164,11 @@
margin-top: 0.2em;
}

.udapp .instance.hide > *:not(.title) {
.udapp .instance.hidesub > *:not(.title) {
display: none;
}

.udapp .instance.hide > .title:before {
.udapp .instance.hidesub > .title:before {
content: "\25B6";
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Renderer.prototype.contracts = function (data, source) {
}
})

$contractOutput.find('.title').click(function (ev) { $(this).closest('.contract').toggleClass('hide') })
$contractOutput.find('.title').click(function (ev) { $(this).closest('.contract').toggleClass('hidesub') })
$('#output').append($contractOutput)
$('.col2 input,textarea').click(function () { this.select() })
}
Expand Down
2 changes: 1 addition & 1 deletion src/universal-dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex')
var $title = $('<span class="title"/>').text(contract.name + ' at ' + address + ' (' + context + ')')
$title.click(function () {
$instance.toggleClass('hide')
$instance.toggleClass('hidesub')
})

var $events = $('<div class="events"/>')
Expand Down

0 comments on commit 1fa433a

Please sign in to comment.