1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-25 05:06:18 +00:00

Add suffix to addon copies setting (#25055)

This commit is contained in:
Bram Kragten
2025-04-14 15:52:35 +02:00
committed by GitHub
parent 74741c5d69
commit a2689eee63

View File

@@ -71,8 +71,11 @@ class HaBackupConfigAddon extends LitElement {
.value=${this.supervisorUpdateConfig?.add_on_backup_retain_copies?.toString() ||
"1"}
type="number"
.min=${MIN_RETENTION_VALUE.toString()}
min=${MIN_RETENTION_VALUE.toString()}
step="1"
.suffixText=${this.hass.localize(
"ui.panel.config.backup.schedule.retention_units.copies"
)}
>
</ha-md-textfield>
</ha-md-list-item>
@@ -115,12 +118,18 @@ class HaBackupConfigAddon extends LitElement {
ha-md-select {
min-width: 210px;
}
ha-md-textfield {
width: 210px;
}
@media all and (max-width: 450px) {
ha-md-select {
min-width: 160px;
width: 160px;
--md-filled-field-content-space: 0;
}
ha-md-textfield {
width: 160px;
}
}
`;
}