mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
[auto scroll] fix documention anchor scrolling
This commit is contained in:
parent
91fbd0864b
commit
c44276027c
@ -155,7 +155,7 @@ ul.no-bull.block-audit code{
|
||||
#doc-nav-desktop.fixed {
|
||||
float: unset;
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
top: 80px;
|
||||
overflow-y: auto;
|
||||
height: calc(100vh - 50px);
|
||||
scrollbar-color: #2d3348 #11131f;
|
||||
|
@ -43,7 +43,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit {
|
||||
if (this.faqTemplates) {
|
||||
this.faqTemplates.forEach((x) => this.dict[x.type] = x.template);
|
||||
}
|
||||
this.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||
this.desktopDocsNavPosition = ( window.pageYOffset > 115 ) ? "fixed" : "relative";
|
||||
this.mobileViewport = window.innerWidth <= 992;
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ export class ApiDocsComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
|
||||
onDocScroll() {
|
||||
this.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||
this.desktopDocsNavPosition = ( window.pageYOffset > 115 ) ? "fixed" : "relative";
|
||||
}
|
||||
|
||||
anchorLinkClick( event: any ) {
|
||||
|
Loading…
Reference in New Issue
Block a user