@kigi/components 1.42.0-alpha.1 → 1.42.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<div class="average-customer-time-wrapper"
|
|
1
|
+
<div class="average-customer-time-wrapper"
|
|
2
|
+
ng-class="{'opacity-dash': $ctrl.isBlockValuesDashboarReturnCustomer}">
|
|
2
3
|
<figure class="highcharts-figure">
|
|
3
4
|
<div class="description-container-dash"
|
|
4
5
|
ng-show="$ctrl.percentagesReturnCustomerTime.length">
|
|
@@ -23,5 +24,4 @@
|
|
|
23
24
|
<div class="line-pay"
|
|
24
25
|
id="line"></div>
|
|
25
26
|
</figure>
|
|
26
|
-
|
|
27
27
|
</div>
|
|
@@ -39,8 +39,10 @@ class MbgAverageCustomerTimeController {
|
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
const zoomLevel = String(window.devicePixelRatio)
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
const hasZoomLevelTwo = zoomLevel.includes(String(1.6))
|
|
43
|
+
const hasZoomLevelOne = zoomLevel.includes(String(0.8))
|
|
44
|
+
|
|
45
|
+
if ((hasZoomLevelTwo && Number(zoomLevel) < 2) || (hasZoomLevelOne && Number(zoomLevel) < 1)) {
|
|
44
46
|
this.adjustContainerWidth(true)
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -49,13 +51,13 @@ class MbgAverageCustomerTimeController {
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
$onDestroy() {
|
|
52
|
-
console.log('chamoooo')
|
|
53
54
|
window.removeEventListener('resize', this.boundAdjustContainerWidth)
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
adjustContainerWidth(onInit) {
|
|
57
58
|
const zoomLevel = window.devicePixelRatio
|
|
58
|
-
|
|
59
|
+
|
|
60
|
+
if (zoomLevel < 2 || zoomLevel < 1) {
|
|
59
61
|
const container = document.getElementById('line')
|
|
60
62
|
if (container) {
|
|
61
63
|
container.style.width = `94%`
|