diff --git a/src/components/ha-base-time-input.ts b/src/components/ha-base-time-input.ts index 91250e7adda9..7f8a9ddfc0df 100644 --- a/src/components/ha-base-time-input.ts +++ b/src/components/ha-base-time-input.ts @@ -134,7 +134,7 @@ export class HaBaseTimeInput extends LitElement { return html` ${this.label ? html`` - : ""} + : nothing}
${this.enableDay @@ -158,7 +158,7 @@ export class HaBaseTimeInput extends LitElement { > ` - : ""} + : nothing} ` - : ""} + : nothing} ${this.enableMillisecond ? html` ` - : ""} + : nothing} ${this.clearable && !this.required && !this.disabled ? html` ${this.format === 24 - ? "" + ? nothing : html`AM PM `} - ${this.helper - ? html`${this.helper}` - : ""}
+ ${this.helper + ? html`${this.helper}` + : nothing} `; } @@ -363,17 +363,17 @@ export class HaBaseTimeInput extends LitElement { width: 85px; } :host([clearable]) .mdc-select__anchor { - padding-inline-end: var(--select-selected-text-padding-end, 12px); + padding-inline-end: var(--select-selected-text-padding-end, 12px); } ha-icon-button { - position: relative + position: relative; --mdc-icon-button-size: 36px; --mdc-icon-size: 20px; color: var(--secondary-text-color); direction: var(--direction); display: flex; align-items: center; - background-color:var(--mdc-text-field-fill-color, whitesmoke); + background-color: var(--mdc-text-field-fill-color, whitesmoke); border-bottom-style: solid; border-bottom-width: 1px; } @@ -398,6 +398,10 @@ export class HaBaseTimeInput extends LitElement { padding-inline-start: 4px; padding-inline-end: initial; } + ha-input-helper-text { + padding-top: 8px; + line-height: normal; + } `; }