Merge claude/1

This commit is contained in:
librelad 2026-05-22 13:26:21 +01:00
commit 4fc462a9e4
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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);
}