tweak block preview (height & hash side by side)

This commit is contained in:
Mononaut
2022-09-10 15:57:06 +00:00
parent 9a87b357fc
commit 0ac3352835
2 changed files with 33 additions and 5 deletions

View File

@@ -4,15 +4,19 @@
</app-preview-title>
<div class="row">
<div class="col-sm">
<div class="row d-flex justify-content-between">
<div class="title-wrapper">
<div class="row">
<div class="block-titles">
<h1 class="title">
<ng-template [ngIf]="blockHeight === 0"><ng-container i18n="@@2303359202781425764">Genesis</ng-container></ng-template>
<ng-template [ngIf]="blockHeight" i18n="shared.block-title">{{ blockHeight }}</ng-template>
</h1>
<h2 class="subtitle" *ngIf="blockHash">
{{ blockHash.slice(0,20) }}
<br>
…{{ blockHash.slice(-19) }}
</h2>
</div>
</div>
<a class="subtitle truncated" [routerLink]="['/block/' | relativeUrl, blockHash]" *ngIf="blockHash"><span class="first">{{blockHash.slice(0,-4)}}</span><span class="last-four">{{blockHash.slice(-4)}}</span></a>
<table class="table table-borderless table-striped">
<tbody>
<!-- <tr>