Fixed history graph tooltip so dates are readable (#2872)

This commit is contained in:
yosilevy
2019-03-01 20:59:17 +02:00
committed by Paulus Schoutsen
parent c2948638d6
commit 178e4de452
2 changed files with 22 additions and 5 deletions

View File

@@ -60,6 +60,9 @@ class HaChartBase extends mixinBehaviors(
width: 200px;
transition: opacity 0.15s ease-in-out;
}
:host([rtl]) .chartTooltip {
direction: rtl;
}
.chartLegend ul,
.chartTooltip ul {
display: inline-block;
@@ -99,6 +102,10 @@ class HaChartBase extends mixinBehaviors(
margin-right: 4px;
width: 10px;
}
:host([rtl]) .chartTooltip em {
margin-right: inherit;
margin-left: 4px;
}
paper-icon-button {
color: var(--secondary-text-color);
}
@@ -169,6 +176,10 @@ class HaChartBase extends mixinBehaviors(
}),
},
unit: Object,
rtl: {
type: Boolean,
reflectToAttribute: true,
},
};
}