feat: manage online backup keys in settings

This commit is contained in:
Sucukdeluxe
2026-08-22 11:25:45 +02:00
parent e99bb2a255
commit f741edaf2f
8 changed files with 505 additions and 64 deletions
+86 -2
View File
@@ -1868,6 +1868,7 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
.online-backup-panel {
display: grid;
gap: 16px;
min-width: 0;
padding: 18px;
margin-bottom: 18px;
border: 1px solid var(--border);
@@ -1886,7 +1887,6 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
line-height: 1.5;
}
.online-backup-action,
.backup-file-actions {
display: flex;
align-items: center;
@@ -1920,6 +1920,75 @@ select.hs-input { max-width: none; width: auto; min-width: 140px; }
color: #fbbf24;
}
.online-backup-managed {
display: grid;
gap: 10px;
min-width: 0;
}
.online-backup-managed h4 {
margin: 0;
color: var(--text);
font-size: 14px;
}
.online-backup-managed-list {
display: grid;
gap: 8px;
min-width: 0;
}
.online-backup-managed-row {
display: grid;
grid-template-columns: 168px 188px minmax(0, 1fr);
gap: 10px;
align-items: center;
min-width: 0;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg-card);
}
.online-backup-managed-key {
min-width: 0;
overflow-wrap: anywhere;
color: var(--text);
font-family: Consolas, monospace;
font-size: 13px;
}
.online-backup-managed-created {
min-width: 0;
color: var(--text-dim);
font-size: 13px;
font-variant-numeric: tabular-nums;
}
.online-backup-managed-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
min-width: 0;
}
.online-backup-managed-actions .btn {
white-space: nowrap;
}
.online-backup-managed-empty {
padding: 12px;
border: 1px dashed var(--border);
border-radius: 8px;
text-align: center;
}
.online-backup-footer {
display: flex;
justify-content: flex-end;
min-width: 0;
}
.online-backup-status {
min-height: 18px;
color: var(--text-dim);
@@ -3607,9 +3676,24 @@ input[type="checkbox"] {
}
@media (max-width: 820px) {
.online-backup-key-row {
.online-backup-key-row,
.online-backup-managed-row {
grid-template-columns: 1fr;
}
.online-backup-managed-actions {
width: 100%;
}
.online-backup-managed-actions .btn {
flex: 1 1 0;
min-width: 0;
white-space: normal;
}
.online-backup-footer .btn {
width: 100%;
}
}
#settings-view {