Truncate node alias if it's too long

This commit is contained in:
nymkappa 2022-08-28 08:58:41 +02:00
parent f19978345e
commit 930f1e4f09
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -1,7 +1,7 @@
<div class="container-xl" *ngIf="(node$ | async) as node">
<h5 class="mb-0" style="color: #ffffff66" i18n="lightning.node">Lightning node</h5>
<div class="title-container mb-2" *ngIf="!error">
<h1 class="mb-0">{{ node.alias }}</h1>
<h1 class="mb-0 text-truncate">{{ node.alias }}</h1>
<span class="tx-link">
<a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">
{{ node.public_key | shortenString : publicKeySize }}