Webpage Card: Fix Aspect Ratio in Editor (#5210)

* fix Ifram editor

* suffix
This commit is contained in:
Zack Arnett 2020-03-16 07:22:41 -04:00 committed by GitHub
parent 447d4604c6
commit 5197f102ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,11 +81,11 @@ export class HuiIframeCardEditor extends LitElement
)} (${this.hass.localize(
"ui.panel.lovelace.editor.card.config.optional"
)})"
type="number"
.value="${Number(this._aspect_ratio.replace("%", ""))}"
.value="${this._aspect_ratio.replace("%", "")}"
.configValue="${"aspect_ratio"}"
@value-changed="${this._valueChanged}"
></paper-input>
><div slot="suffix">%</div></paper-input
>
</div>
</div>
`;