fix(backup/webui): show the retention "Backup style" divider only for Custom
.backup-retention-preset-block carried a permanent border-bottom (+ padding), but the Keep-* fields it separates the dropdown from are hidden for every preset except Custom — so on Self-hosting/etc. it was an orphaned line with empty space beneath it. Moved the divider + spacing onto an .is-custom state that applyVisibility() toggles alongside the fields. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
34102eb6db
commit
41786edd36
@ -64,6 +64,9 @@ Object.assign(BackupPage.prototype, {
|
|||||||
|
|
||||||
const applyVisibility = (presetKey) => {
|
const applyVisibility = (presetKey) => {
|
||||||
const isCustom = presetKey === 'custom';
|
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'; });
|
wrappers.forEach(w => { if (w) w.style.display = isCustom ? '' : 'none'; });
|
||||||
};
|
};
|
||||||
applyVisibility(preset);
|
applyVisibility(preset);
|
||||||
|
|||||||
@ -713,6 +713,13 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 6px;
|
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;
|
padding-bottom: 14px;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
|
border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user