mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Add label to location selector (#17402)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
dac7c0f5fd
commit
6b33b4e656
@ -26,6 +26,7 @@ export class HaLocationSelector extends LitElement {
|
|||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
return html`
|
return html`
|
||||||
|
<p>${this.label ? this.label : ""}</p>
|
||||||
<ha-locations-editor
|
<ha-locations-editor
|
||||||
class="flex"
|
class="flex"
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
@ -78,10 +79,13 @@ export class HaLocationSelector extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
:host {
|
ha-locations-editor {
|
||||||
display: block;
|
display: block;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
}
|
}
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user