Disable mining charts iteration on mobile widgets

This commit is contained in:
nymkappa 2022-03-07 11:41:41 +01:00
parent bc13393778
commit 05342079b3
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
3 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,7 @@ export class HashrateChartComponent implements OnInit {
bottom: this.widget ? 30 : 60, bottom: this.widget ? 30 : 60,
}, },
tooltip: { tooltip: {
show: !this.isMobile() || !this.widget,
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'line' type: 'line'

View File

@ -132,6 +132,7 @@ export class HashrateChartPoolsComponent implements OnInit {
top: this.widget ? 10 : 40, top: this.widget ? 10 : 40,
}, },
tooltip: { tooltip: {
show: !this.isMobile() || !this.widget,
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'line' type: 'line'

View File

@ -139,6 +139,7 @@ export class PoolRankingComponent implements OnInit {
edgeDistance: edgeDistance, edgeDistance: edgeDistance,
}, },
tooltip: { tooltip: {
show: !this.isMobile() || !this.widget,
backgroundColor: 'rgba(17, 19, 31, 1)', backgroundColor: 'rgba(17, 19, 31, 1)',
borderRadius: 4, borderRadius: 4,
shadowColor: 'rgba(0, 0, 0, 0.5)', shadowColor: 'rgba(0, 0, 0, 0.5)',