@record-evolution/widget-gauge 1.7.20 → 1.7.21
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
package/src/default-data.json
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dataseries": [
|
|
3
|
-
{
|
|
4
|
-
"label": "Temperature",
|
|
5
|
-
"unit": "°C",
|
|
6
|
-
"precision": 1,
|
|
7
|
-
"value": 83,
|
|
8
|
-
"sections": {
|
|
9
|
-
"sectionLimits": [],
|
|
10
|
-
"backgroundColors": []
|
|
11
|
-
},
|
|
12
|
-
"advanced": {
|
|
13
|
-
"averageLatest": 1
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
3
|
{
|
|
17
4
|
"label": "Temperature",
|
|
18
5
|
"unit": "°C",
|
package/src/widget-gauge.ts
CHANGED
|
@@ -514,7 +514,11 @@ export class WidgetGauge extends LitElement {
|
|
|
514
514
|
overflow: hidden;
|
|
515
515
|
text-overflow: ellipsis;
|
|
516
516
|
white-space: nowrap;
|
|
517
|
-
line-height:
|
|
517
|
+
line-height: 0.8;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.title {
|
|
521
|
+
line-height: 1.5;
|
|
518
522
|
}
|
|
519
523
|
p {
|
|
520
524
|
margin: 10px 0 0 0;
|
|
@@ -544,7 +548,7 @@ export class WidgetGauge extends LitElement {
|
|
|
544
548
|
style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
|
|
545
549
|
>
|
|
546
550
|
<header class="paging" ?active=${this.inputData?.title || this.inputData?.subTitle}>
|
|
547
|
-
<h3 class="paging" ?active=${this.inputData?.title}>${this.inputData?.title}</h3>
|
|
551
|
+
<h3 class="paging title" ?active=${this.inputData?.title}>${this.inputData?.title}</h3>
|
|
548
552
|
<p
|
|
549
553
|
class="paging"
|
|
550
554
|
?active=${this.inputData?.subTitle}
|