fix time input width (#23998)

This commit is contained in:
Bram Kragten 2025-01-31 18:12:49 +01:00 committed by GitHub
parent 1402802031
commit 34ef5be720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 10 deletions

View File

@ -329,15 +329,12 @@ export class HaBaseTimeInput extends LitElement {
:host([clearable]) { :host([clearable]) {
position: relative; position: relative;
} }
:host {
display: block;
}
.time-input-wrap-wrap { .time-input-wrap-wrap {
display: flex; display: flex;
} }
.time-input-wrap { .time-input-wrap {
display: flex; display: flex;
flex: 1; flex: var(--time-input-flex, unset);
border-radius: var(--mdc-shape-small, 4px) var(--mdc-shape-small, 4px) 0 0; border-radius: var(--mdc-shape-small, 4px) var(--mdc-shape-small, 4px) 0 0;
overflow: hidden; overflow: hidden;
position: relative; position: relative;

View File

@ -537,20 +537,22 @@ class HaBackupConfigSchedule extends LitElement {
ha-md-list-item { ha-md-list-item {
--md-item-overflow: visible; --md-item-overflow: visible;
} }
ha-md-select, ha-md-select {
ha-time-input {
min-width: 210px; min-width: 210px;
} }
@media all and (max-width: 450px) {
ha-md-select,
ha-time-input { ha-time-input {
min-width: 194px;
--time-input-flex: 1;
}
@media all and (max-width: 450px) {
ha-md-select {
min-width: 160px; min-width: 160px;
width: 160px; width: 160px;
--md-filled-field-content-space: 0; --md-filled-field-content-space: 0;
} }
ha-time-input { ha-time-input {
min-width: 120px; min-width: 145px;
width: 120px; width: 145px;
} }
} }
ha-md-textfield#value { ha-md-textfield#value {