Fix widget responsiveness on acceleration dashboard
This commit is contained in:
		
							parent
							
								
									f915ff3f91
								
							
						
					
					
						commit
						c3675d5b1c
					
				| @ -1,10 +1,10 @@ | |||||||
| <div class="container-xl" style="min-height: 335px" [class.widget]="widget" [class.full-height]="!widget"> | <div class="container-xl widget-container" [class.widget]="widget" [class.full-height]="!widget"> | ||||||
|   <h1 *ngIf="!widget" class="float-left" i18n="master-page.blocks">Accelerations</h1> |   <h1 *ngIf="!widget" class="float-left" i18n="master-page.blocks">Accelerations</h1> | ||||||
|   <div *ngIf="!widget && isLoading" class="spinner-border ml-3" role="status"></div> |   <div *ngIf="!widget && isLoading" class="spinner-border ml-3" role="status"></div> | ||||||
| 
 | 
 | ||||||
|   <div class="clearfix"></div> |   <div class="clearfix"></div> | ||||||
| 
 | 
 | ||||||
|   <div style="min-height: 295px" *ngIf="accelerationList$ | async as accelerations"> |   <div class="acceleration-list" *ngIf="accelerationList$ | async as accelerations"> | ||||||
|     <table *ngIf="!accelerations || accelerations.length; else noData" class="table table-borderless table-fixed"> |     <table *ngIf="!accelerations || accelerations.length; else noData" class="table table-borderless table-fixed"> | ||||||
|       <thead> |       <thead> | ||||||
|         <th class="txid text-left" i18n="dashboard.latest-transactions.txid">TXID</th> |         <th class="txid text-left" i18n="dashboard.latest-transactions.txid">TXID</th> | ||||||
|  | |||||||
| @ -14,11 +14,24 @@ | |||||||
| .container-xl.legacy { | .container-xl.legacy { | ||||||
|   max-width: 1140px; |   max-width: 1140px; | ||||||
| } | } | ||||||
|  | .container-xl.widget-container { | ||||||
|  |   min-height: 335px; | ||||||
|  |   @media (max-width: 767px) { | ||||||
|  |     min-height: auto; | ||||||
|  |   } | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| .container { | .container { | ||||||
|   max-width: 100%; |   max-width: 100%; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .acceleration-list { | ||||||
|  |   min-height: 295px; | ||||||
|  |   @media (max-width: 767px) { | ||||||
|  |     min-height: auto; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| tr, td, th { | tr, td, th { | ||||||
|   border: 0px; |   border: 0px; | ||||||
|   padding-top: 0.65rem !important; |   padding-top: 0.65rem !important; | ||||||
| @ -51,34 +64,63 @@ tr, td, th { | |||||||
| 
 | 
 | ||||||
| .txid { | .txid { | ||||||
|   width: 25%; |   width: 25%; | ||||||
|   @media (max-width: 1100px) { |  | ||||||
|     padding-right: 10px; |  | ||||||
|   } |  | ||||||
|   @media (max-width: 875px) { |  | ||||||
|     display: none; |  | ||||||
|   } |  | ||||||
|   overflow: hidden; |   overflow: hidden; | ||||||
|   text-overflow: ellipsis; |   text-overflow: ellipsis; | ||||||
|   white-space: nowrap; |   white-space: nowrap; | ||||||
|   max-width: 30%; |   max-width: 30%; | ||||||
|  |   @media (max-width: 1060px) and (min-width: 768px) { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 500px) { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .fee { | .fee-rate { | ||||||
|   width: 35%; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .block { |  | ||||||
|   width: 20%; |   width: 20%; | ||||||
|  |   @media (max-width: 1060px) and (min-width: 768px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 500px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 840px) and (min-width: 768px) { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 410px) { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .bid { | .bid { | ||||||
|   width: 30%; |   width: 30%; | ||||||
|  |   min-width: 150px; | ||||||
|  |   @media (max-width: 840px) and (min-width: 768px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 410px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .time { | .time { | ||||||
|   width: 25%; |   width: 25%; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .fee { | ||||||
|  |   width: 35%; | ||||||
|  |   @media (max-width: 1060px) and (min-width: 768px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
|  |   @media (max-width: 500px) { | ||||||
|  |     text-align: start !important; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .block { | ||||||
|  |   width: 20%; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .status { | .status { | ||||||
|   width: 20% |   width: 20% | ||||||
| } | } | ||||||
| @ -122,4 +164,7 @@ tr, td, th { | |||||||
|   flex-direction: row; |   flex-direction: row; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   justify-content: center; |   justify-content: center; | ||||||
|  |   @media (max-width: 767px) { | ||||||
|  |     height: 100px; | ||||||
|  |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -139,6 +139,9 @@ | |||||||
| } | } | ||||||
| .list-card { | .list-card { | ||||||
|   height: 410px; |   height: 410px; | ||||||
|  |   @media (max-width: 767px) { | ||||||
|  |     height: auto; | ||||||
|  |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .mempool-block-wrapper { | .mempool-block-wrapper { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user