Improve backup settings display on mobile (#23967)

This commit is contained in:
Paul Bottein 2025-01-30 16:49:05 +01:00 committed by GitHub
parent b2b71edd04
commit a29544c1e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 2 deletions

View File

@ -378,8 +378,9 @@ class HaBackupConfigData extends LitElement {
} }
@media all and (max-width: 450px) { @media all and (max-width: 450px) {
ha-md-select { ha-md-select {
min-width: 160px; min-width: 140px;
width: 160px; width: 140px;
--md-filled-field-content-space: 0;
} }
} }
`; `;

View File

@ -545,6 +545,12 @@ class HaBackupConfigSchedule extends LitElement {
ha-md-select, ha-md-select,
ha-time-input { ha-time-input {
min-width: 160px; min-width: 160px;
width: 160px;
--md-filled-field-content-space: 0;
}
ha-time-input {
min-width: 120px;
width: 120px;
} }
} }
ha-md-textfield#value { ha-md-textfield#value {
@ -553,6 +559,16 @@ class HaBackupConfigSchedule extends LitElement {
ha-md-select#type { ha-md-select#type {
min-width: 100px; min-width: 100px;
} }
@media all and (max-width: 450px) {
ha-md-textfield#value {
min-width: 60px;
margin: 0 -8px;
}
ha-md-select#type {
min-width: 120px;
width: 120px;
}
}
ha-expansion-panel { ha-expansion-panel {
--expansion-panel-summary-padding: 0 16px; --expansion-panel-summary-padding: 0 16px;
--expansion-panel-content-padding: 0 16px; --expansion-panel-content-padding: 0 16px;