Merge pull request #2565 from mempool/simon/address-label-overflow-fix

Allow address label to overflow without pushing UI
This commit is contained in:
wiz 2022-09-19 04:04:16 +09:00 committed by GitHub
commit 691f9aade1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View File

@ -1,9 +1,16 @@
<a *ngIf="channel; else default" [routerLink]="['/lightning/channel' | relativeUrl, channel.id]"> <ng-template [ngIf]="channel" [ngIfElse]="default">
<span <div>
*ngIf="label" <div class="badge-positioner">
class="badge badge-pill badge-warning" <a [routerLink]="['/lightning/channel' | relativeUrl, channel.id]">
>{{ label }}</span> <span
</a> *ngIf="label"
class="badge badge-pill badge-warning"
>{{ label }}</span>
</a>
</div>
&nbsp;
</div>
</ng-template>
<ng-template #default> <ng-template #default>
<span <span

View File

@ -1,3 +1,7 @@
.badge { .badge {
margin-right: 2px; margin-right: 2px;
} }
.badge-positioner {
position: absolute;
}