Fix rtl mode

This commit is contained in:
2019-11-15 23:35:52 +01:00
parent 471607766c
commit 5d2842f934
3 changed files with 8 additions and 13 deletions

View File

@@ -91,6 +91,9 @@ class LayoutCard extends LitElement {
this._config
);
if(this._config.rtl)
this.columns.reverse();
this.format_columns();
this.requestUpdate();
@@ -150,7 +153,6 @@ class LayoutCard extends LitElement {
return html`
<div id="columns"
class="
${this._config.rtl ? "rtl": " "}
${this._isPanel() ? "panel": " "}
"
style="
@@ -178,9 +180,6 @@ class LayoutCard extends LitElement {
justify-content: center;
margin-top: -8px;
}
#columns.rtl {
flex-direction: row-reverse;
}
#columns.panel {
margin-top: 0;
}