Optimise contract events display (#3120)
* Adjust to last 25 events * Adjust event address widths * Slight column size adjustment
This commit is contained in:
parent
e4fcf4da2b
commit
3a1f3c0a80
@ -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 {
|
||||||
|
@ -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 });
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user