Apply smooth scrolling to docs only
This commit is contained in:
		
							parent
							
								
									ad89d9d9e8
								
							
						
					
					
						commit
						315b7593bf
					
				@ -23,5 +23,10 @@ export class DocsComponent implements OnInit {
 | 
				
			|||||||
    this.activeTab = ( url[2].path === "rest" ) ? 0 : 1;
 | 
					    this.activeTab = ( url[2].path === "rest" ) ? 0 : 1;
 | 
				
			||||||
    this.env = this.stateService.env;
 | 
					    this.env = this.stateService.env;
 | 
				
			||||||
    this.showWebSocketTab = ( ! ( ( this.env.BASE_MODULE === "bisq" ) || ( this.stateService.network === "bisq" ) || ( this.stateService.network === "liquidtestnet" ) ) );
 | 
					    this.showWebSocketTab = ( ! ( ( this.env.BASE_MODULE === "bisq" ) || ( this.stateService.network === "bisq" ) || ( this.stateService.network === "liquidtestnet" ) ) );
 | 
				
			||||||
 | 
					    document.querySelector<HTMLElement>( "html" ).style.scrollBehavior = "smooth";
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
 | 
					    document.querySelector<HTMLElement>( "html" ).style.scrollBehavior = "auto";
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -50,7 +50,6 @@ $dropdown-link-active-bg: #11131f;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
html, body {
 | 
					html, body {
 | 
				
			||||||
  height: 100%;
 | 
					  height: 100%;
 | 
				
			||||||
  scroll-behavior: smooth;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
body {
 | 
					body {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user