Hide fee diagram on mobile
This commit is contained in:
		
							parent
							
								
									cb363aca23
								
							
						
					
					
						commit
						ed12e30517
					
				@ -13,6 +13,7 @@
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="accelerate-cols">
 | 
			
		||||
  <ng-container *ngIf="!isMobile">
 | 
			
		||||
    <app-accelerate-fee-graph
 | 
			
		||||
      [tx]="tx"
 | 
			
		||||
      [estimate]="estimate"
 | 
			
		||||
@ -20,6 +21,7 @@
 | 
			
		||||
      [maxRateIndex]="selectFeeRateIndex"
 | 
			
		||||
      (setUserBid)="setUserBid($event)"
 | 
			
		||||
    ></app-accelerate-fee-graph>
 | 
			
		||||
  </ng-container>
 | 
			
		||||
 | 
			
		||||
  <ng-container *ngIf="estimate">
 | 
			
		||||
    <div [class]="{estimateDisabled: error}">
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
import { Component, OnInit, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
 | 
			
		||||
import { Component, OnInit, Input, OnDestroy, OnChanges, SimpleChanges, HostListener } from '@angular/core';
 | 
			
		||||
import { ApiService } from '../../services/api.service';
 | 
			
		||||
import { Subscription, catchError, of, tap } from 'rxjs';
 | 
			
		||||
import { StorageService } from '../../services/storage.service';
 | 
			
		||||
@ -57,6 +57,7 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
 | 
			
		||||
  userBid = 0;
 | 
			
		||||
  selectFeeRateIndex = 1;
 | 
			
		||||
  showTable: 'estimated' | 'maximum' = 'maximum';
 | 
			
		||||
  isMobile: boolean = window.innerWidth <= 767.98;
 | 
			
		||||
 | 
			
		||||
  maxRateOptions: RateOption[] = [];
 | 
			
		||||
 | 
			
		||||
@ -197,4 +198,9 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
 | 
			
		||||
    const auth = this.storageService.getAuth();
 | 
			
		||||
    return auth !== null;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @HostListener('window:resize', ['$event'])
 | 
			
		||||
  onResize(): void {
 | 
			
		||||
    this.isMobile = window.innerWidth <= 767.98;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user