Pool icon clickable - blocks list pagination margin

This commit is contained in:
nymkappa 2022-03-12 16:44:21 +01:00
parent d6a0d84d71
commit 11de94cf90
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
2 changed files with 12 additions and 5 deletions

View File

@ -23,11 +23,11 @@
}}</a>
</td>
<td class="pool text-left" [class]="widget ? 'widget' : ''">
<img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
<a class="clear-link"[routerLink]="[('/mining/pool/' + block.extras.pool.id) | relativeUrl]">
<img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
onError="this.src = './resources/mining-pools/default.svg'">
<span class="pool-name"><a class="clear-link"
[routerLink]="[('/mining/pool/' + block.extras.pool.id) | relativeUrl]">{{
block.extras.pool.name }}</a></span>
<span class="pool-name">{{ block.extras.pool.name }}</span>
</a>
</td>
<td class="timestamp" *ngIf="!widget">
&lrm;{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}
@ -86,7 +86,7 @@
</ng-template>
</table>
<ngb-pagination *ngIf="!widget" class="pagination-container float-right mt-3 mb-3 mb-lg-0"
<ngb-pagination *ngIf="!widget" class="pagination-container float-right mt-2"
[class]="isLoading ? 'disabled' : ''" [collectionSize]="blocksCount" [rotate]="true" [maxSize]="5" [pageSize]="15"
[(page)]="page" (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
</ngb-pagination>

View File

@ -118,3 +118,10 @@ td {
width: 20%;
}
}
.pagination-container {
margin-bottom: 40px;
@media (max-width: 992px) {
margin-bottom: 80px;
}
}