Fix rtl mode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user