mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
RTL support for history timeline (#2444)
* RTL support in history timeline * RTL support in history timeline
This commit is contained in:
parent
ebbd308be6
commit
5ae599b1b2
@ -20,6 +20,10 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
|||||||
:host([rendered]) {
|
:host([rendered]) {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ha-chart-base {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<ha-chart-base
|
<ha-chart-base
|
||||||
data="[[chartData]]"
|
data="[[chartData]]"
|
||||||
@ -185,6 +189,11 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
|||||||
afterSetDimensions: (yaxe) => {
|
afterSetDimensions: (yaxe) => {
|
||||||
yaxe.maxWidth = yaxe.chart.width * 0.18;
|
yaxe.maxWidth = yaxe.chart.width * 0.18;
|
||||||
},
|
},
|
||||||
|
position: this.hass.translationMetadata.translations[
|
||||||
|
this.hass.selectedLanguage || this.hass.language
|
||||||
|
].isRTL
|
||||||
|
? "right"
|
||||||
|
: "left",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user