Merge pull request #4505 from natsee/fix-overflow-pool-ranking
Fix overflow on mining pool ranking table
This commit is contained in:
		
						commit
						bad3992397
					
				| @ -92,7 +92,7 @@ | |||||||
|           <th class="" i18n="mining.pool-name">Pool</th> |           <th class="" i18n="mining.pool-name">Pool</th> | ||||||
|           <th class="" *ngIf="this.miningWindowPreference === '24h'" i18n="mining.hashrate">Hashrate</th> |           <th class="" *ngIf="this.miningWindowPreference === '24h'" i18n="mining.hashrate">Hashrate</th> | ||||||
|           <th class="" i18n="master-page.blocks">Blocks</th> |           <th class="" i18n="master-page.blocks">Blocks</th> | ||||||
|           <th *ngIf="auditAvailable" class="health text-right widget" i18n="latest-blocks.avg_health" |           <th *ngIf="auditAvailable" class="health text-right widget" [ngClass]="{'health-column': this.miningWindowPreference === '24h'}" i18n="latest-blocks.avg_health" | ||||||
|             i18n-ngbTooltip="latest-blocks.avg_health" ngbTooltip="Avg Health" placement="bottom" #health [disableTooltip]="!isEllipsisActive(health)">Avg Health</th> |             i18n-ngbTooltip="latest-blocks.avg_health" ngbTooltip="Avg Health" placement="bottom" #health [disableTooltip]="!isEllipsisActive(health)">Avg Health</th> | ||||||
|           <th *ngIf="auditAvailable" class="d-none d-sm-table-cell" i18n="mining.fees-per-block">Avg Block Fees</th> |           <th *ngIf="auditAvailable" class="d-none d-sm-table-cell" i18n="mining.fees-per-block">Avg Block Fees</th> | ||||||
|           <th class="d-none d-lg-table-cell" i18n="mining.empty-blocks">Empty Blocks</th> |           <th class="d-none d-lg-table-cell" i18n="mining.empty-blocks">Empty Blocks</th> | ||||||
| @ -104,13 +104,13 @@ | |||||||
|           <td class="text-right"> |           <td class="text-right"> | ||||||
|             <img width="25" height="25" src="{{ pool.logo }}" [alt]="pool.name + ' mining pool logo'" onError="this.src = '/resources/mining-pools/default.svg'"> |             <img width="25" height="25" src="{{ pool.logo }}" [alt]="pool.name + ' mining pool logo'" onError="this.src = '/resources/mining-pools/default.svg'"> | ||||||
|           </td> |           </td> | ||||||
|           <td class=""><a [routerLink]="[('/mining/pool/' + pool.slug) | relativeUrl]">{{ pool.name }}</a></td> |           <td class="pool-name"><a [routerLink]="[('/mining/pool/' + pool.slug) | relativeUrl]">{{ pool.name }}</a></td> | ||||||
|           <td class="" *ngIf="this.miningWindowPreference === '24h'">{{ pool.lastEstimatedHashrate }} {{ |           <td class="" *ngIf="this.miningWindowPreference === '24h'">{{ pool.lastEstimatedHashrate }} {{ | ||||||
|             miningStats.miningUnits.hashrateUnit }}</td> |             miningStats.miningUnits.hashrateUnit }}</td> | ||||||
|           <td class="d-flex justify-content-center"> |           <td class="d-flex justify-content-center"> | ||||||
|             {{ pool.blockCount }}<span class="d-none d-md-table-cell"> ({{ pool.share }}%)</span> |             {{ pool.blockCount }}<span class="d-none d-md-table-cell"> ({{ pool.share }}%)</span> | ||||||
|           </td> |           </td> | ||||||
|           <td *ngIf="auditAvailable" class="health text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}"> |           <td *ngIf="auditAvailable" class="health text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable, 'health-column': this.miningWindowPreference === '24h'}"> | ||||||
|             <a |             <a | ||||||
|               class="health-badge badge" |               class="health-badge badge" | ||||||
|               [class.badge-success]="pool.avgMatchRate >= 99" |               [class.badge-success]="pool.avgMatchRate >= 99" | ||||||
|  | |||||||
| @ -41,6 +41,18 @@ | |||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @media (max-width: 430px) { | ||||||
|  |   .pool-name { | ||||||
|  |     max-width: 110px; | ||||||
|  |     white-space: nowrap; | ||||||
|  |     overflow: hidden; | ||||||
|  |     text-overflow: ellipsis; | ||||||
|  |   } | ||||||
|  |   .health-column { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .loadingGraphs { | .loadingGraphs { | ||||||
|   position: absolute; |   position: absolute; | ||||||
|   top: 50%; |   top: 50%; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user