Add more padding to the blocks list page
This commit is contained in:
		
							parent
							
								
									11de94cf90
								
							
						
					
					
						commit
						a893e87347
					
				@ -3,92 +3,94 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  <div class="clearfix"></div>
 | 
					  <div class="clearfix"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <table class="table table-borderless">
 | 
					  <div style="min-height: 295px">
 | 
				
			||||||
    <thead>
 | 
					    <table class="table table-borderless">
 | 
				
			||||||
      <th class="height" [class]="widget ? 'widget' : ''" i18n="latest-blocks.height">Height</th>
 | 
					      <thead>
 | 
				
			||||||
      <th class="pool text-left" [class]="widget ? 'widget' : ''" i18n="latest-blocks.mined-by">
 | 
					        <th class="height" [class]="widget ? 'widget' : ''" i18n="latest-blocks.height">Height</th>
 | 
				
			||||||
        Pool</th>
 | 
					        <th class="pool text-left" [class]="widget ? 'widget' : ''" i18n="latest-blocks.mined-by">
 | 
				
			||||||
      <th class="timestamp" i18n="latest-blocks.timestamp" *ngIf="!widget">Timestamp</th>
 | 
					          Pool</th>
 | 
				
			||||||
      <th class="mined" i18n="latest-blocks.mined" *ngIf="!widget">Mined</th>
 | 
					        <th class="timestamp" i18n="latest-blocks.timestamp" *ngIf="!widget">Timestamp</th>
 | 
				
			||||||
      <th class="reward text-right" i18n="latest-blocks.reward" [class]="widget ? 'widget' : ''">
 | 
					        <th class="mined" i18n="latest-blocks.mined" *ngIf="!widget">Mined</th>
 | 
				
			||||||
        Reward</th>
 | 
					        <th class="reward text-right" i18n="latest-blocks.reward" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
      <th class="fees text-right" i18n="latest-blocks.fees" *ngIf="!widget">Fees</th>
 | 
					          Reward</th>
 | 
				
			||||||
      <th class="txs text-right" i18n="latest-blocks.transactions" [class]="widget ? 'widget' : ''">Txs</th>
 | 
					        <th class="fees text-right" i18n="latest-blocks.fees" *ngIf="!widget">Fees</th>
 | 
				
			||||||
      <th class="size" i18n="latest-blocks.size" *ngIf="!widget">Size</th>
 | 
					        <th class="txs text-right" i18n="latest-blocks.transactions" [class]="widget ? 'widget' : ''">Txs</th>
 | 
				
			||||||
    </thead>
 | 
					        <th class="size" i18n="latest-blocks.size" *ngIf="!widget">Size</th>
 | 
				
			||||||
    <tbody *ngIf="blocks$ | async as blocks; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''">
 | 
					      </thead>
 | 
				
			||||||
      <tr *ngFor="let block of blocks; let i= index; trackBy: trackByBlock">
 | 
					      <tbody *ngIf="blocks$ | async as blocks; else skeleton" [style]="isLoading ? 'opacity: 0.75' : ''">
 | 
				
			||||||
        <td class="height "[class]="widget ? 'widget' : ''">
 | 
					        <tr *ngFor="let block of blocks; let i= index; trackBy: trackByBlock">
 | 
				
			||||||
          <a [routerLink]="['/block' | relativeUrl, block.height]">{{ block.height
 | 
					          <td class="height " [class]="widget ? 'widget' : ''">
 | 
				
			||||||
            }}</a>
 | 
					            <a [routerLink]="['/block' | relativeUrl, block.height]">{{ block.height
 | 
				
			||||||
        </td>
 | 
					              }}</a>
 | 
				
			||||||
        <td class="pool text-left" [class]="widget ? 'widget' : ''">
 | 
					 | 
				
			||||||
          <a class="clear-link"[routerLink]="[('/mining/pool/' + block.extras.pool.id) | relativeUrl]">
 | 
					 | 
				
			||||||
            <img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
 | 
					 | 
				
			||||||
            onError="this.src = './resources/mining-pools/default.svg'">
 | 
					 | 
				
			||||||
            <span class="pool-name">{{ block.extras.pool.name }}</span>
 | 
					 | 
				
			||||||
          </a>
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="timestamp" *ngIf="!widget">
 | 
					 | 
				
			||||||
          ‎{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="mined" *ngIf="!widget">
 | 
					 | 
				
			||||||
          <app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since>
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="reward text-right" [class]="widget ? 'widget' : ''">
 | 
					 | 
				
			||||||
          <app-amount [satoshis]="block.extras.reward" digitsInfo="1.2-2"></app-amount>
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="fees text-right" *ngIf="!widget">
 | 
					 | 
				
			||||||
          <app-amount [satoshis]="block.extras.totalFees" digitsInfo="1.2-2"></app-amount>
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="txs text-right" [class]="widget ? 'widget' : ''">
 | 
					 | 
				
			||||||
          {{ block.tx_count | number }}
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
        <td class="size" *ngIf="!widget">
 | 
					 | 
				
			||||||
          <div class="progress">
 | 
					 | 
				
			||||||
            <div class="progress-bar progress-mempool" role="progressbar"
 | 
					 | 
				
			||||||
              [ngStyle]="{'width': (block.weight / stateService.env.BLOCK_WEIGHT_UNITS)*100 + '%' }"></div>
 | 
					 | 
				
			||||||
            <div class="progress-text" [innerHTML]="block.size | bytes: 2"></div>
 | 
					 | 
				
			||||||
          </div>
 | 
					 | 
				
			||||||
        </td>
 | 
					 | 
				
			||||||
      </tr>
 | 
					 | 
				
			||||||
    </tbody>
 | 
					 | 
				
			||||||
    <ng-template #skeleton>
 | 
					 | 
				
			||||||
      <tbody>
 | 
					 | 
				
			||||||
        <tr *ngFor="let item of skeletonLines">
 | 
					 | 
				
			||||||
          <td class="height" [class]="widget ? 'widget' : ''">
 | 
					 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="pool text-left" [class]="widget ? 'widget' : ''">
 | 
					          <td class="pool text-left" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
            <img width="0" height="25" style="opacity: 0">
 | 
					            <a class="clear-link" [routerLink]="[('/mining/pool/' + block.extras.pool.id) | relativeUrl]">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					              <img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
 | 
				
			||||||
 | 
					                onError="this.src = './resources/mining-pools/default.svg'">
 | 
				
			||||||
 | 
					              <span class="pool-name">{{ block.extras.pool.name }}</span>
 | 
				
			||||||
 | 
					            </a>
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="timestamp" *ngIf="!widget">
 | 
					          <td class="timestamp" *ngIf="!widget">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            ‎{{ block.timestamp * 1000 | date:'yyyy-MM-dd HH:mm' }}
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="mined" *ngIf="!widget">
 | 
					          <td class="mined" *ngIf="!widget">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            <app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since>
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="reward text-right" [class]="widget ? 'widget' : ''">
 | 
					          <td class="reward text-right" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            <app-amount [satoshis]="block.extras.reward" digitsInfo="1.2-2"></app-amount>
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="fees text-right" *ngIf="!widget">
 | 
					          <td class="fees text-right" *ngIf="!widget">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            <app-amount [satoshis]="block.extras.totalFees" digitsInfo="1.2-2"></app-amount>
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="txs text-right" [class]="widget ? 'widget' : ''">
 | 
					          <td class="txs text-right" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            {{ block.tx_count | number }}
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
          <td class="size" *ngIf="!widget">
 | 
					          <td class="size" *ngIf="!widget">
 | 
				
			||||||
            <span class="skeleton-loader"></span>
 | 
					            <div class="progress">
 | 
				
			||||||
 | 
					              <div class="progress-bar progress-mempool" role="progressbar"
 | 
				
			||||||
 | 
					                [ngStyle]="{'width': (block.weight / stateService.env.BLOCK_WEIGHT_UNITS)*100 + '%' }"></div>
 | 
				
			||||||
 | 
					              <div class="progress-text" [innerHTML]="block.size | bytes: 2"></div>
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
          </td>
 | 
					          </td>
 | 
				
			||||||
        </tr>
 | 
					        </tr>
 | 
				
			||||||
      </tbody>
 | 
					      </tbody>
 | 
				
			||||||
    </ng-template>
 | 
					      <ng-template #skeleton>
 | 
				
			||||||
  </table>
 | 
					        <tbody>
 | 
				
			||||||
 | 
					          <tr *ngFor="let item of skeletonLines">
 | 
				
			||||||
  <ngb-pagination *ngIf="!widget" class="pagination-container float-right mt-2"
 | 
					            <td class="height" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
    [class]="isLoading ? 'disabled' : ''" [collectionSize]="blocksCount" [rotate]="true" [maxSize]="5" [pageSize]="15"
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
    [(page)]="page" (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
 | 
					            </td>
 | 
				
			||||||
  </ngb-pagination>
 | 
					            <td class="pool text-left" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
 | 
					              <img width="0" height="25" style="opacity: 0">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="timestamp" *ngIf="!widget">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="mined" *ngIf="!widget">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="reward text-right" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="fees text-right" *ngIf="!widget">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="txs text-right" [class]="widget ? 'widget' : ''">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					            <td class="size" *ngIf="!widget">
 | 
				
			||||||
 | 
					              <span class="skeleton-loader"></span>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					          </tr>
 | 
				
			||||||
 | 
					        </tbody>
 | 
				
			||||||
 | 
					      </ng-template>
 | 
				
			||||||
 | 
					    </table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <ngb-pagination *ngIf="!widget" class="pagination-container float-right mt-2" [class]="isLoading ? 'disabled' : ''"
 | 
				
			||||||
 | 
					      [collectionSize]="blocksCount" [rotate]="true" [maxSize]="5" [pageSize]="15" [(page)]="page"
 | 
				
			||||||
 | 
					      (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false">
 | 
				
			||||||
 | 
					    </ngb-pagination>
 | 
				
			||||||
 | 
					  </div>
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
@ -1,9 +1,10 @@
 | 
				
			|||||||
.container-xl {
 | 
					.container-xl {
 | 
				
			||||||
  max-width: 1400px;
 | 
					  max-width: 1400px;
 | 
				
			||||||
  padding-bottom: 0;
 | 
					  padding-bottom: 100px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.container-xl.widget {
 | 
					.container-xl.widget {
 | 
				
			||||||
  padding-left: 0px;
 | 
					  padding-left: 0px;
 | 
				
			||||||
 | 
					  padding-bottom: 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.container {
 | 
					.container {
 | 
				
			||||||
@ -117,11 +118,7 @@ td {
 | 
				
			|||||||
  @media (max-width: 650px) {
 | 
					  @media (max-width: 650px) {
 | 
				
			||||||
    width: 20%;
 | 
					    width: 20%;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					  @media (max-width: 450px) {
 | 
				
			||||||
 | 
					    display: none;
 | 
				
			||||||
.pagination-container {
 | 
					 | 
				
			||||||
  margin-bottom: 40px;
 | 
					 | 
				
			||||||
  @media (max-width: 992px) {
 | 
					 | 
				
			||||||
    margin-bottom: 80px;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user