@fxlt/common-ui 0.0.6 → 0.0.7-rc2

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.
@@ -1414,7 +1414,7 @@ class ChartComponent {
1414
1414
  updateResponsiveState() {
1415
1415
  const { width } = this.ref.nativeElement.getBoundingClientRect();
1416
1416
  if (width > 0) {
1417
- this.isMobile = width < 300;
1417
+ this.isMobile = width < 350;
1418
1418
  }
1419
1419
  }
1420
1420
  forceMediaRecalc(retry = 0) {
@@ -1501,7 +1501,7 @@ class ChartComponent {
1501
1501
  color: colors,
1502
1502
  tooltip: { trigger: 'item' },
1503
1503
  legend: {
1504
- orient: 'vertical',
1504
+ orient: isMobile ? 'horizontal' : 'vertical',
1505
1505
  icon: 'circle',
1506
1506
  itemGap: 12,
1507
1507
  width: 160,
@@ -1588,7 +1588,7 @@ class ChartComponent {
1588
1588
  },
1589
1589
  },
1590
1590
  ],
1591
- })
1591
+ }),
1592
1592
  };
1593
1593
  /* ================= BUILD ================= */
1594
1594
  detectType() {