mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +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]) {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
ha-chart-base {
|
||||
direction: ltr;
|
||||
}
|
||||
</style>
|
||||
<ha-chart-base
|
||||
data="[[chartData]]"
|
||||
@ -185,6 +189,11 @@ class StateHistoryChartTimeline extends LocalizeMixin(PolymerElement) {
|
||||
afterSetDimensions: (yaxe) => {
|
||||
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