RTL fixes for raw config editor and card editor -> card preview (#2532)

* RTL fixes for raw config editor and card editor -> card preview

* Fixed missing line break

* Fixed weird vscode line break problems

* Refactored to LitElement + addressed updating RTL only when needed

* Refactor

* Fixed forgotten import

* Reverted to HTMLElement + added RTL check in set hass

* Added conditional update
This commit is contained in:
yosilevy
2019-02-01 19:53:08 +02:00
committed by Paulus Schoutsen
parent 25a579f7ed
commit e2ff51f425
3 changed files with 13 additions and 3 deletions

View File

@@ -7,3 +7,7 @@ export function computeRTL(hass: HomeAssistant) {
}
return false;
}
export function computeRTLDirection(hass: HomeAssistant) {
return computeRTL(hass) ? "rtl" : "ltr";
}