mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 02:19:43 +00:00
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:
committed by
Paulus Schoutsen
parent
25a579f7ed
commit
e2ff51f425
@@ -7,3 +7,7 @@ export function computeRTL(hass: HomeAssistant) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export function computeRTLDirection(hass: HomeAssistant) {
|
||||
return computeRTL(hass) ? "rtl" : "ltr";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user