Merge pull request #1428 from mempool/bugfix/blocks-list-css
Fix blocks list mobile layout
This commit is contained in:
		
						commit
						f87da211dc
					
				| @ -1,4 +1,4 @@ | ||||
| <div class="container-xl" [class]="widget ? 'widget' : ''"> | ||||
| <div class="container-xl" [class]="widget ? 'widget' : 'full-height'"> | ||||
|   <h1 *ngIf="!widget" class="float-left" i18n="latest-blocks.blocks">Blocks</h1> | ||||
| 
 | ||||
|   <div class="clearfix"></div> | ||||
| @ -91,7 +91,7 @@ | ||||
|     </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" | ||||
|       [collectionSize]="blocksCount" [rotate]="true" [maxSize]="maxSize" [pageSize]="15" [(page)]="page" | ||||
|       (pageChange)="pageChange(page)" [boundaryLinks]="true" [ellipses]="false"> | ||||
|     </ngb-pagination> | ||||
|   </div> | ||||
|  | ||||
| @ -22,6 +22,7 @@ export class BlocksList implements OnInit { | ||||
|   paginationMaxSize: number; | ||||
|   page = 1; | ||||
|   lastPage = 1; | ||||
|   maxSize = window.innerWidth <= 767.98 ? 3 : 5; | ||||
|   blocksCount: number; | ||||
|   fromHeightSubject: BehaviorSubject<number> = new BehaviorSubject(this.fromBlockHeight); | ||||
|   skeletonLines: number[] = []; | ||||
|  | ||||
| @ -66,6 +66,11 @@ body { | ||||
| .container-xl { | ||||
|   padding-bottom: 60px; | ||||
| } | ||||
| .full-height { | ||||
|   @media (max-width: 767.98px) { | ||||
|     min-height: 100vh; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| :focus { | ||||
|   outline: none !important; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user