[accelerator] fix preview text wrap not working on safari/firefox
[accelerator] polish accelerator preview
This commit is contained in:
		
							parent
							
								
									40b387a1e0
								
							
						
					
					
						commit
						8badacf123
					
				| @ -40,7 +40,7 @@ | ||||
|                 <td class="units" [innerHTML]="'‎' + (estimate.txSummary.effectiveVsize | vbytes: 2)"></td> | ||||
|               </tr> | ||||
|               <tr class="info"> | ||||
|                 <td class="info"> | ||||
|                 <td class="info" colspan=3> | ||||
|                   <i><small>Size in vbytes of this transaction<span *ngIf="hasAncestors"> and its unconfirmed ancestors</span></small></i> | ||||
|                 </td> | ||||
|               </tr> | ||||
| @ -53,7 +53,7 @@ | ||||
|                 </td> | ||||
|               </tr> | ||||
|               <tr class="info group-last"> | ||||
|                 <td class="info"> | ||||
|                 <td class="info" colspan=3> | ||||
|                   <i><small>Fees already paid by this transaction<span *ngIf="hasAncestors"> and its unconfirmed ancestors</span></small></i> | ||||
|                 </td> | ||||
|               </tr> | ||||
| @ -95,7 +95,7 @@ | ||||
|                   <td class="item"> | ||||
|                     Next block market rate | ||||
|                   </td> | ||||
|                   <td class="amt" style="font-size: 20px"> | ||||
|                   <td class="amt" style="font-size: 16px"> | ||||
|                     {{ estimate.targetFeeRate | number : '1.0-0' }} | ||||
|                   </td> | ||||
|                   <td class="units"><span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span></td> | ||||
| @ -109,7 +109,7 @@ | ||||
|                   </td> | ||||
|                   <td class="units"> | ||||
|                     <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                     <span class="fiat"><app-fiat [value]="math.max(0, estimate.nextBlockFee - estimate.txSummary.effectiveFee)"></app-fiat></span> | ||||
|                     <span class="fiat ml-1"><app-fiat [value]="math.max(0, estimate.nextBlockFee - estimate.txSummary.effectiveFee)"></app-fiat></span> | ||||
|                   </td> | ||||
|                 </tr> | ||||
|               </ng-container> | ||||
| @ -129,7 +129,7 @@ | ||||
|                 </td> | ||||
|                 <td class="units"> | ||||
|                   <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                   <span class="fiat"><app-fiat [value]="estimate.mempoolBaseFee"></app-fiat></span> | ||||
|                   <span class="fiat ml-1"><app-fiat [value]="estimate.mempoolBaseFee"></app-fiat></span> | ||||
|                 </td> | ||||
|               </tr> | ||||
|               <tr class="info group-last"> | ||||
| @ -141,7 +141,7 @@ | ||||
|                 </td> | ||||
|                 <td class="units"> | ||||
|                   <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                   <span class="fiat"><app-fiat [value]="estimate.vsizeFee"></app-fiat></span> | ||||
|                   <span class="fiat ml-1"><app-fiat [value]="estimate.vsizeFee"></app-fiat></span> | ||||
|                 </td> | ||||
|               </tr> | ||||
| 
 | ||||
| @ -158,11 +158,11 @@ | ||||
|                   </td> | ||||
|                   <td class="units"> | ||||
|                     <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                     <span class="fiat"><app-fiat [value]="estimate.cost + estimate.mempoolBaseFee + estimate.vsizeFee"></app-fiat></span> | ||||
|                     <span class="fiat ml-1"><app-fiat [value]="estimate.cost + estimate.mempoolBaseFee + estimate.vsizeFee"></app-fiat></span> | ||||
|                   </td> | ||||
|                 </tr> | ||||
|                 <tr class="info group-last" style="border-bottom: 1px solid lightgrey"> | ||||
|                   <td class="info"> | ||||
|                   <td class="info" colspan=3> | ||||
|                     <i><small>If your tx is accelerated to </small><small>{{ estimate.targetFeeRate | number : '1.0-0' }} <span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span></small></i> | ||||
|                   </td> | ||||
|                 </tr> | ||||
| @ -181,13 +181,13 @@ | ||||
|                   </td> | ||||
|                   <td class="units"> | ||||
|                     <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                     <span class="fiat"> | ||||
|                     <span class="fiat ml-1"> | ||||
|                       <app-fiat [value]="maxCost" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat> | ||||
|                     </span> | ||||
|                   </td> | ||||
|                 </tr> | ||||
|                 <tr class="info group-last"> | ||||
|                   <td class="info"> | ||||
|                   <td class="info" colspan=3> | ||||
|                     <i><small>If your tx is accelerated to </small><small>~{{ ((estimate.txSummary.effectiveFee + userBid) / estimate.txSummary.effectiveVsize) | number : '1.0-0' }}  <span class="symbol" i18n="shared.sat-vbyte|sat/vB">sat/vB</span></small></i> | ||||
|                   </td> | ||||
|                 </tr> | ||||
| @ -204,7 +204,7 @@ | ||||
|                   </td> | ||||
|                   <td class="units"> | ||||
|                     <span class="symbol" i18n="shared.sats|sats">sats</span> | ||||
|                     <span class="fiat"> | ||||
|                     <span class="fiat ml-1"> | ||||
|                       <app-fiat [value]="estimate.userBalance" [colorClass]="estimate.userBalance < maxCost ? 'red-color' : 'green-color'"></app-fiat> | ||||
|                     </span> | ||||
|                   </td> | ||||
|  | ||||
| @ -8,9 +8,6 @@ | ||||
|     align-items: center; | ||||
|     justify-content: center; | ||||
| 
 | ||||
|     .fee { | ||||
|       font-size: 1.2em; | ||||
|     } | ||||
|     .rate { | ||||
|       font-size: 0.9em; | ||||
|       .symbol { | ||||
| @ -64,8 +61,6 @@ | ||||
| 
 | ||||
| .table-accelerator { | ||||
|   tr { | ||||
|     text-wrap: wrap; | ||||
| 
 | ||||
|     td { | ||||
|       padding-top: 0; | ||||
|       padding-bottom: 0; | ||||
| @ -89,6 +84,7 @@ | ||||
|     } | ||||
|     &.info { | ||||
|       color: #6c757d; | ||||
|       white-space: initial; | ||||
|     } | ||||
|     &.amt { | ||||
|       text-align: right; | ||||
| @ -97,6 +93,9 @@ | ||||
|     &.units { | ||||
|       padding-left: 0.2em; | ||||
|       white-space: nowrap; | ||||
|       display: flex; | ||||
|       justify-content: space-between; | ||||
|       align-items: center; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -107,3 +106,7 @@ | ||||
|   align-items: stretch; | ||||
|   margin-top: 1em; | ||||
| } | ||||
| 
 | ||||
| .item { | ||||
|   white-space: initial; | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user