feat(config): add section dividers to the config form
Add a thin divider above the Save/Reset buttons, and one at the top of #advanced-sections so a line appears between the "Show Advanced Options" toggle and the advanced fields only when they're revealed. Shared config renderer, so it applies to every config category (backup included). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
d3681163af
commit
afaa43de36
@ -343,6 +343,17 @@
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
/* Thin horizontal rule that separates the config form's sections — one sits
|
||||
above the Save/Reset buttons, and one at the top of #advanced-sections so a
|
||||
line appears between the "Show Advanced Options" toggle and the advanced
|
||||
fields only when they're revealed. */
|
||||
.config-divider {
|
||||
height: 0;
|
||||
border: none;
|
||||
border-top: 1px solid var(--border-color, rgba(var(--text-rgb), 0.12));
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.git-master-toggle .master-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@ -144,7 +144,7 @@ if (typeof window.ConfigManager === 'undefined') {
|
||||
'</div>' +
|
||||
'</div>';
|
||||
|
||||
configSection.innerHTML = headerHTML + '<form id="config-form" class="config-form">' + formHTML + '<div class="config-actions">' +
|
||||
configSection.innerHTML = headerHTML + '<form id="config-form" class="config-form">' + formHTML + '<div class="config-divider"></div><div class="config-actions">' +
|
||||
'<button type="submit" class="btn btn-primary">' +
|
||||
'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">' +
|
||||
'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>' +
|
||||
|
||||
@ -53,6 +53,10 @@ class ConfigUtils {
|
||||
// .is-advanced .domains-header h3::after in config.css).
|
||||
if (advancedSubcategories.length > 0) {
|
||||
formHTML += '<div id="advanced-sections" class="advanced-sections" style="display: none;">';
|
||||
// Divider between the "Show Advanced Options" toggle and the advanced
|
||||
// fields. It lives inside #advanced-sections so it only appears once the
|
||||
// user reveals them.
|
||||
formHTML += '<div class="config-divider"></div>';
|
||||
|
||||
for (const subcategoryName of advancedSubcategories) {
|
||||
const subcategoryData = configData[subcategoryName];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user