migrate old text truncation implementations to new component

This commit is contained in:
Mononaut
2023-01-05 11:01:46 -06:00
parent 920b1e1425
commit ad57df34d2
18 changed files with 117 additions and 133 deletions

View File

@@ -3,11 +3,11 @@
<div class="title-container mb-2" *ngIf="!error">
<h1 class="mb-0 text-truncate">{{ node.alias }}</h1>
<span class="tx-link">
<a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">
<span class="d-inline d-lg-none">{{ node.public_key | shortenString : 24 }}</span>
<span class="d-none d-lg-inline">{{ node.public_key }}</span>
<a class="node-id" [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">
<app-truncate [text]="node.public_key" [lastChars]="8">
<app-clipboard [text]="node.public_key"></app-clipboard>
</app-truncate>
</a>
<app-clipboard [text]="node.public_key"></app-clipboard>
</span>
</div>