Skip to content

Commit

Permalink
fix time input width (#23998)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Jan 31, 2025
1 parent 1402802 commit 34ef5be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/components/ha-base-time-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 34ef5be

Please sign in to comment.