fix time input width (#23998)

This commit is contained in:
Bram Kragten 2025-01-31 18:12:49 +01:00
parent 6b691063a8
commit 5abfb90b16
2 changed files with 9 additions and 10 deletions

View File

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

View File

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