feat(config): add divider above the advanced container
Emit a config-divider before the Danger Zone / "Show Advanced Options" container in the shared renderer, so a line separates the regular fields from the advanced toggle — mirroring the dividers above Save/Reset and inside #advanced-sections. Applies to every config category. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
5ce0a88de0
commit
2361f23607
@ -344,9 +344,9 @@
|
||||
}
|
||||
|
||||
/* 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. */
|
||||
above the advanced/danger-zone container, one 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;
|
||||
|
||||
@ -44,6 +44,10 @@ class ConfigUtils {
|
||||
async renderSectionedContent(formHTML, advancedSubcategories, unusedSubcategories, self, category, configData) {
|
||||
// Add danger zone toggle controls if needed
|
||||
if (advancedSubcategories.length > 0 || unusedSubcategories.length > 0) {
|
||||
// Divider above the advanced/danger-zone container, mirroring the one
|
||||
// above the Save/Reset buttons — separates the regular fields from the
|
||||
// "Show Advanced Options" toggle.
|
||||
formHTML += '<div class="config-divider"></div>';
|
||||
formHTML += this.generateToggleControls(advancedSubcategories.length > 0, unusedSubcategories.length > 0);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user