Optimise contract events display (#3120)

* Adjust to last 25 events

* Adjust event address widths

* Slight column size adjustment
This commit is contained in:
Jaco Greeff 2016-11-03 12:23:53 +01:00 committed by Gav Wood
parent e4fcf4da2b
commit 3a1f3c0a80
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@
.txhash { .txhash {
text-overflow: ellipsis; text-overflow: ellipsis;
width: 20%;
} }
.key { .key {
@ -82,6 +83,7 @@
.eventAddress { .eventAddress {
display: inline-block; display: inline-block;
position: relative; position: relative;
white-space: nowrap;
} }
.eventIdentityicon { .eventIdentityicon {

View File

@ -312,7 +312,7 @@ class Contract extends Component {
const contract = api.newContract(account.meta.abi, params.address); const contract = api.newContract(account.meta.abi, params.address);
contract contract
.subscribe(null, { limit: 50, fromBlock: 0, toBlock: 'pending' }, this._receiveEvents) .subscribe(null, { limit: 25, fromBlock: 0, toBlock: 'pending' }, this._receiveEvents)
.then((subscriptionId) => { .then((subscriptionId) => {
this.setState({ subscriptionId }); this.setState({ subscriptionId });
}); });