diff --git a/assets/css/browser-solidity.css b/assets/css/browser-solidity.css index 5c2b3d8b39..a7f5839845 100644 --- a/assets/css/browser-solidity.css +++ b/assets/css/browser-solidity.css @@ -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; } @@ -376,7 +376,7 @@ body { margin-top: 0.2em; } -.contract.hide > .title:before { +.contract.hidesub > .title:before { content: "\25B6"; } diff --git a/assets/css/universal-dapp.css b/assets/css/universal-dapp.css index 4b67b7c51d..a63532bd76 100644 --- a/assets/css/universal-dapp.css +++ b/assets/css/universal-dapp.css @@ -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; @@ -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"; } diff --git a/src/app/renderer.js b/src/app/renderer.js index 777c5906db..07db365e81 100644 --- a/src/app/renderer.js +++ b/src/app/renderer.js @@ -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() }) } diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 2b4eec6134..922ad8ab4d 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -275,7 +275,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex') var $title = $('').text(contract.name + ' at ' + address + ' (' + context + ')') $title.click(function () { - $instance.toggleClass('hide') + $instance.toggleClass('hidesub') }) var $events = $('
')