[ui] don't add 120px to blockchain component on liquid
This commit is contained in:
		
							parent
							
								
									83c285e17d
								
							
						
					
					
						commit
						6b8db33a9c
					
				@ -14,6 +14,7 @@
 | 
			
		||||
  <div id="blockchain-container" [dir]="timeLtr ? 'rtl' : 'ltr'" #blockchainContainer
 | 
			
		||||
    [class.menu-open]="menuOpen"
 | 
			
		||||
    [class.menu-closing]="menuSliding && !menuOpen"
 | 
			
		||||
    [class.with-menu]="hasMenu"
 | 
			
		||||
    (mousedown)="onMouseDown($event)"
 | 
			
		||||
    (pointerdown)="onPointerDown($event)"
 | 
			
		||||
    (touchmove)="onTouchMove($event)"
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@
 | 
			
		||||
  overflow-y: hidden;
 | 
			
		||||
  scrollbar-width: none;
 | 
			
		||||
  -ms-overflow-style: none;
 | 
			
		||||
  width: calc(100% + 120px);
 | 
			
		||||
  width: 100%;
 | 
			
		||||
 | 
			
		||||
  transform: translateX(0px);
 | 
			
		||||
  transition: transform 0;
 | 
			
		||||
@ -20,6 +20,10 @@
 | 
			
		||||
    transform: translateX(0px);
 | 
			
		||||
    transition: transform 0.25s;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.with-menu {
 | 
			
		||||
    width: calc(100% + 120px);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#blockchain-container::-webkit-scrollbar {
 | 
			
		||||
 | 
			
		||||
@ -57,10 +57,15 @@ export class StartComponent implements OnInit, OnDestroy, DoCheck {
 | 
			
		||||
  menuSliding: boolean = false;
 | 
			
		||||
  menuTimeout: number;
 | 
			
		||||
 | 
			
		||||
  hasMenu = false;
 | 
			
		||||
 | 
			
		||||
  constructor(
 | 
			
		||||
    private stateService: StateService,
 | 
			
		||||
  ) {
 | 
			
		||||
    this.isiOS = ['iPhone','iPod','iPad'].includes((navigator as any)?.userAgentData?.platform || navigator.platform);
 | 
			
		||||
    if (this.stateService.network === '') {
 | 
			
		||||
      this.hasMenu = true;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngDoCheck(): void {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user