mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 17:24:25 +01:00
Add active router links - Disable graph touch scroll
This commit is contained in:
parent
77a99a97cc
commit
8e61720e09
@ -1,20 +1,20 @@
|
|||||||
<ul ngbNav #nav="ngbNav" class="nav-pills mb-3" style="padding: 0px 35px">
|
<ul ngbNav #nav="ngbNav" class="nav-pills mb-3" style="padding: 0px 35px">
|
||||||
<div class="d-inline-flex flex-wrap menu">
|
<div class="d-inline-flex flex-wrap menu">
|
||||||
<li ngbNavItem class="menu-li">
|
<li ngbNavItem class="menu-li">
|
||||||
<a [routerLink]="['/graphs/mempool' | relativeUrl]" ngbNavLink>Mempool</a>
|
<a routerLinkActive="active" [routerLink]="['/graphs/mempool' | relativeUrl]" ngbNavLink>Mempool</a>
|
||||||
</li>
|
</li>
|
||||||
<li ngbNavItem class="menu-li">
|
<li ngbNavItem class="menu-li">
|
||||||
<a [routerLink]="['/graphs/mining/pools' | relativeUrl]" ngbNavLink i18n="mining.pools">
|
<a routerLinkActive="active" [routerLink]="['/graphs/mining/pools' | relativeUrl]" ngbNavLink i18n="mining.pools">
|
||||||
Pools ranking
|
Pools ranking
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ngbNavItem class="menu-li">
|
<li ngbNavItem class="menu-li">
|
||||||
<a [routerLink]="['/graphs/mining/pools-dominance' | relativeUrl]" ngbNavLink i18n="mining.pools-dominance">
|
<a routerLinkActive="active" [routerLink]="['/graphs/mining/pools-dominance' | relativeUrl]" ngbNavLink i18n="mining.pools-dominance">
|
||||||
Pools dominance
|
Pools dominance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ngbNavItem class="menu-li">
|
<li ngbNavItem class="menu-li">
|
||||||
<a [routerLink]="['/graphs/mining/hashrate-difficulty' | relativeUrl]" ngbNavLink
|
<a routerLinkActive="active" [routerLink]="['/graphs/mining/hashrate-difficulty' | relativeUrl]" ngbNavLink
|
||||||
i18n="mining.hashrate-difficulty">
|
i18n="mining.hashrate-difficulty">
|
||||||
Hashrate & Difficulty
|
Hashrate & Difficulty
|
||||||
</a>
|
</a>
|
||||||
|
@ -170,7 +170,7 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
grid: {
|
grid: {
|
||||||
right: this.right,
|
right: this.right,
|
||||||
left: this.left,
|
left: this.left,
|
||||||
bottom: this.widget ? 30 : 60,
|
bottom: this.widget ? 30 : this.isMobile() ? 90 : 60,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
show: !this.isMobile() || !this.widget,
|
show: !this.isMobile() || !this.widget,
|
||||||
@ -303,13 +303,14 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
zoomLock: true,
|
zoomLock: true,
|
||||||
maxSpan: 100,
|
maxSpan: 100,
|
||||||
minSpan: 10,
|
minSpan: 10,
|
||||||
|
moveOnMouseMove: false,
|
||||||
}, {
|
}, {
|
||||||
showDetail: false,
|
showDetail: false,
|
||||||
show: true,
|
show: true,
|
||||||
type: 'slider',
|
type: 'slider',
|
||||||
brushSelect: false,
|
brushSelect: false,
|
||||||
realtime: true,
|
realtime: true,
|
||||||
bottom: 0,
|
bottom: this.isMobile() ? 30 : 0,
|
||||||
left: 20,
|
left: 20,
|
||||||
right: 15,
|
right: 15,
|
||||||
selectedDataBackground: {
|
selectedDataBackground: {
|
||||||
|
@ -213,6 +213,7 @@ export class HashrateChartPoolsComponent implements OnInit {
|
|||||||
zoomLock: true,
|
zoomLock: true,
|
||||||
maxSpan: 100,
|
maxSpan: 100,
|
||||||
minSpan: 10,
|
minSpan: 10,
|
||||||
|
moveOnMouseMove: false,
|
||||||
}, {
|
}, {
|
||||||
showDetail: false,
|
showDetail: false,
|
||||||
show: true,
|
show: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user