mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
fix(ui): pools address overflow and hide button on mobile (#5917)
This commit is contained in:
parent
27ff011e77
commit
34190aa435
2 changed files with 10 additions and 4 deletions
3
contributors/OscarG673
Normal file
3
contributors/OscarG673
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of February 7, 2026.
|
||||
|
||||
Signed: OscarG673
|
||||
|
|
@ -43,9 +43,10 @@
|
|||
</a>
|
||||
<div>
|
||||
<div #collapse="ngbCollapse" [(ngbCollapse)]="gfg">
|
||||
<a class="addresses-data" *ngFor="let address of poolStats.pool.addresses | slice: 1"
|
||||
[routerLink]="['/address' | relativeUrl, address]">{{
|
||||
address }}<br></a>
|
||||
<a class="addresses-data"
|
||||
*ngFor="let address of poolStats.pool.addresses | slice: 1"
|
||||
[routerLink]="['/address' | relativeUrl, address]">
|
||||
<app-truncate [text]="address" [lastChars]="8"></app-truncate></a>
|
||||
</div>
|
||||
<button *ngIf="poolStats.pool.addresses.length >= 2" type="button"
|
||||
class="btn btn-sm btn-primary small-button" (click)="collapse.toggle()"
|
||||
|
|
@ -65,7 +66,9 @@
|
|||
<button *ngIf="poolStats.pool.addresses.length >= 2" type="button"
|
||||
class="btn btn-sm btn-primary float-right small-button mobile" (click)="collapse.toggle()"
|
||||
[attr.aria-expanded]="!gfg" aria-controls="collapseExample">
|
||||
<span i18n="show-all">Show all</span> ({{ poolStats.pool.addresses.length }})
|
||||
<span *ngIf="gfg" i18n="show-all">Show all</span>
|
||||
<span *ngIf="!gfg" i18n="hide">Hide</span>
|
||||
({{ poolStats.pool.addresses.length }})
|
||||
</button>
|
||||
<a class="addresses-data" [routerLink]="['/address' | relativeUrl, poolStats.pool.addresses[0]]">
|
||||
{{ poolStats.pool.addresses[0] | shortenString: 30 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue