fix next block merkle row layout

This commit is contained in:
Mononaut 2025-01-24 01:56:15 +00:00
parent a79c165b30
commit 24d0ed4ced
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 20 additions and 5 deletions

View File

@ -267,11 +267,13 @@
<tbody>
<tr>
@for (branch of job.merkleBranches; track $index) {
@if ($index === 0 && branch) {
<a [routerLink]="['/tx' | relativeUrl, reverseHash(branch)]"><td class="merkle" [style.background-color]="branch ? '#' + branch.slice(0, 6) : ''"><fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true" style="vertical-align: text-top; font-size: 14px; color: white"></fa-icon></td></a>
} @else {
<td class="merkle" [style.background-color]="branch ? '#' + branch.slice(0, 6) : ''"></td>
}
<td class="merkle" [style.background-color]="branch ? '#' + branch.slice(0, 6) : ''">
@if ($index === 0 && branch) {
<a [routerLink]="['/tx' | relativeUrl, reverseHash(branch)]" class="cell-link">
<fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true" style="vertical-align: text-top; font-size: 14px; color: white"></fa-icon>
</a>
}
</td>
}
@for (_ of [].constructor(Math.max(0, 12 - job.merkleBranches.length)); track $index) {
<td class="merkle empty-branch"></td>

View File

@ -241,6 +241,19 @@ div.scrollable {
td {
position: relative;
height: 2em;
.cell-link {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: inherit;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
}
}
}