Adjust the width of the incoming tx tooltip for 2h timeframe

This commit is contained in:
ncois 2023-11-19 16:42:09 +01:00
parent 9d0bfdfa88
commit 1eb425897e
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8
2 changed files with 3 additions and 4 deletions

View File

@ -209,8 +209,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges, On
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 80; obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 80;
return obj; return obj;
}, },
extraCssText: `width: ${(['2h', '24h'].includes(this.windowPreference) || this.template === 'widget') ? '125px' : '215px'}; extraCssText: `background: transparent;
background: transparent;
border: none; border: none;
box-shadow: none;`, box-shadow: none;`,
axisPointer: { axisPointer: {
@ -233,7 +232,8 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges, On
} }
} }
}); });
return `<div class="tx-wrapper-tooltip-chart ${(this.template === 'advanced') ? 'tx-wrapper-tooltip-chart-advanced' : ''}">${itemFormatted}</div>`; return `<div class="tx-wrapper-tooltip-chart ${(this.template === 'advanced') ? 'tx-wrapper-tooltip-chart-advanced' : ''}"
style="width: ${(this.windowPreference === '2h' || this.template === 'widget') ? '125px' : '215px'}">${itemFormatted}</div>`;
} }
}, },
xAxis: [ xAxis: [

View File

@ -606,7 +606,6 @@ html:lang(ru) .card-title {
} }
.tx-wrapper-tooltip-chart-advanced { .tx-wrapper-tooltip-chart-advanced {
width: 215px;
.indicator-container { .indicator-container {
.indicator { .indicator {
margin-right: 5px; margin-right: 5px;