mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix map editor (#8280)
This commit is contained in:
parent
bd59c4fccf
commit
b798523d53
@ -96,37 +96,37 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
return html`
|
return html`
|
||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<paper-input
|
<paper-input
|
||||||
.label=${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.title"
|
"ui.panel.lovelace.editor.card.generic.title"
|
||||||
)}
|
)}
|
||||||
(${this.hass.localize(
|
(${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.config.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})
|
)})"
|
||||||
.value=${this._title}
|
.value=${this._title}
|
||||||
.configValue=${"title"}
|
.configValue=${"title"}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
.label=${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.generic.aspect_ratio"
|
"ui.panel.lovelace.editor.card.generic.aspect_ratio"
|
||||||
)}
|
)}
|
||||||
(${this.hass.localize(
|
(${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.config.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})
|
)})"
|
||||||
.value=${this._aspect_ratio}
|
.value=${this._aspect_ratio}
|
||||||
.configValue=${"aspect_ratio"}
|
.configValue=${"aspect_ratio"}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<paper-input
|
<paper-input
|
||||||
.label=${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.map.default_zoom"
|
"ui.panel.lovelace.editor.card.map.default_zoom"
|
||||||
)}
|
)}
|
||||||
(${this.hass.localize(
|
(${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.config.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._default_zoom}"
|
.value=${this._default_zoom}
|
||||||
.configValue=${"default_zoom"}
|
.configValue=${"default_zoom"}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
@ -145,14 +145,14 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
></ha-switch
|
></ha-switch
|
||||||
></ha-formfield>
|
></ha-formfield>
|
||||||
<paper-input
|
<paper-input
|
||||||
.label=${this.hass.localize(
|
.label="${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.map.hours_to_show"
|
"ui.panel.lovelace.editor.card.map.hours_to_show"
|
||||||
)}
|
)}
|
||||||
(${this.hass.localize(
|
(${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.config.optional"
|
"ui.panel.lovelace.editor.card.config.optional"
|
||||||
)})
|
)})"
|
||||||
type="number"
|
type="number"
|
||||||
.value="${this._hours_to_show}"
|
.value=${this._hours_to_show}
|
||||||
.configValue=${"hours_to_show"}
|
.configValue=${"hours_to_show"}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
></paper-input>
|
></paper-input>
|
||||||
@ -169,7 +169,7 @@ export class HuiMapCardEditor extends LitElement implements LovelaceCardEditor {
|
|||||||
</h3>
|
</h3>
|
||||||
<div class="geo_location_sources">
|
<div class="geo_location_sources">
|
||||||
<hui-input-list-editor
|
<hui-input-list-editor
|
||||||
inputLabel=${this.hass.localize(
|
.inputLabel=${this.hass.localize(
|
||||||
"ui.panel.lovelace.editor.card.map.source"
|
"ui.panel.lovelace.editor.card.map.source"
|
||||||
)}
|
)}
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
@ -23,8 +23,8 @@ class HaEntityMarker extends EventsMixin(PolymerElement) {
|
|||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 0.1em solid var(--ha-marker-color, var(--primary-color));
|
border: 0.1em solid var(--ha-marker-color, var(--primary-color));
|
||||||
color: rgb(76, 76, 76);
|
color: var(--primary-text-color);
|
||||||
background-color: var(--light-primary-color);
|
background-color: var(--card-background-color);
|
||||||
}
|
}
|
||||||
iron-image {
|
iron-image {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user