Fix pagination responsive layout. (#590)
* Fix pagination responsive css. * Fix css title block transaction alignment. * Add pagination responsive layout to bisq tx page. * Add pagination responsive to bisq blocks page. * Fix pagination css - bisq txs page. * Add e2e tests for bisq and mainnet pagination.
This commit is contained in:
@@ -46,7 +46,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
this.websocketService.want(['blocks', 'mempool-blocks']);
|
||||
this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5;
|
||||
this.paginationMaxSize = window.matchMedia('(max-width: 670px)').matches ? 3 : 5;
|
||||
this.network = this.stateService.network;
|
||||
this.itemsPerPage = this.stateService.env.ITEMS_PER_PAGE;
|
||||
|
||||
@@ -216,4 +216,8 @@ export class BlockComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
return this.block && this.block.height > 681393 && (new Date().getTime() / 1000) < 1628640000;
|
||||
}
|
||||
|
||||
onResize(event: any) {
|
||||
this.paginationMaxSize = event.target.innerWidth < 670 ? 3 : 5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user