do not completely hide `contract` row

pull/1/head
yann300 8 years ago
parent bd91b6c1bc
commit 1fa433a462
  1. 6
      assets/css/browser-solidity.css
  2. 6
      assets/css/universal-dapp.css
  3. 2
      src/app/renderer.js
  4. 2
      src/universal-dapp.js

@ -355,12 +355,12 @@ body {
width: 100%; width: 100%;
} }
.contract.hide { .contract.hidesub {
padding-bottom: 0; padding-bottom: 0;
margin: 0; margin: 0;
} }
.contract.hide > *:not(.title) { .contract.hidesub > *:not(.title) {
display: none; display: none;
} }
@ -376,7 +376,7 @@ body {
margin-top: 0.2em; margin-top: 0.2em;
} }
.contract.hide > .title:before { .contract.hidesub > .title:before {
content: "\25B6"; content: "\25B6";
} }

@ -150,7 +150,7 @@
cursor: pointer; cursor: pointer;
} }
.udapp .instance.hide .title { .udapp .instance.hidesub .title {
margin-bottom: 0; margin-bottom: 0;
padding-right: 1.5em; padding-right: 1.5em;
word-wrap: break-word; word-wrap: break-word;
@ -164,11 +164,11 @@
margin-top: 0.2em; margin-top: 0.2em;
} }
.udapp .instance.hide > *:not(.title) { .udapp .instance.hidesub > *:not(.title) {
display: none; display: none;
} }
.udapp .instance.hide > .title:before { .udapp .instance.hidesub > .title:before {
content: "\25B6"; content: "\25B6";
} }

@ -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) $('#output').append($contractOutput)
$('.col2 input,textarea').click(function () { this.select() }) $('.col2 input,textarea').click(function () { this.select() })
} }

@ -275,7 +275,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex') address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex')
var $title = $('<span class="title"/>').text(contract.name + ' at ' + address + ' (' + context + ')') var $title = $('<span class="title"/>').text(contract.name + ' at ' + address + ' (' + context + ')')
$title.click(function () { $title.click(function () {
$instance.toggleClass('hide') $instance.toggleClass('hidesub')
}) })
var $events = $('<div class="events"/>') var $events = $('<div class="events"/>')

Loading…
Cancel
Save