Merge claude/2

This commit is contained in:
librelad 2026-07-07 22:25:03 +01:00
commit 9d84e1e918
2 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,9 @@ Object.assign(BackupPage.prototype, {
const applyVisibility = (presetKey) => {
const isCustom = presetKey === 'custom';
// Gate the block's divider on custom too — it separates the dropdown
// from the Keep-* fields, which only show in the custom state.
block.classList.toggle('is-custom', isCustom);
wrappers.forEach(w => { if (w) w.style.display = isCustom ? '' : 'none'; });
};
applyVisibility(preset);

View File

@ -713,6 +713,13 @@
display: flex;
flex-direction: column;
gap: 6px;
}
/* The divider (and its spacing) belongs only to the "Custom" state: the Keep-*
fields it separates the dropdown from are hidden for every preset except
custom, so otherwise it's an orphaned line under the dropdown. The .is-custom
class is toggled by applyVisibility() in the retention enhancer. */
.backup-retention-preset-block.is-custom {
padding-bottom: 14px;
margin-bottom: 6px;
border-bottom: 1px solid rgba(var(--text-rgb), 0.08);