Merge pull request #5409 from mempool/natsoni/fix-truncated-link

Fix truncated link to not refresh full window
This commit is contained in:
softsimon 2024-08-05 00:16:15 +02:00 committed by GitHub
commit 1b4780c25b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
<span class="truncate" [style.max-width]="maxWidth ? maxWidth + 'px' : null" [style.justify-content]="textAlign" [class.inline]="inline">
<ng-container *ngIf="link">
<a [routerLink]="link" class="truncate-link" [target]="external ? '_blank' : ''">
<a [routerLink]="link" class="truncate-link" [target]="external ? '_blank' : '_self'">
<ng-container *ngIf="rtl; then rtlTruncated; else ltrTruncated;"></ng-container>
</a>
</ng-container>