From afaa43de36a7e0554f2cea5acad27aed1a14c101 Mon Sep 17 00:00:00 2001 From: librelad Date: Fri, 22 May 2026 11:41:53 +0100 Subject: [PATCH] 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 Signed-off-by: librelad --- containers/libreportal/frontend/css/config.css | 11 +++++++++++ .../frontend/js/components/config/config-manager.js | 2 +- .../frontend/js/components/config/config-utils.js | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/containers/libreportal/frontend/css/config.css b/containers/libreportal/frontend/css/config.css index 7da081e..ea1031f 100644 --- a/containers/libreportal/frontend/css/config.css +++ b/containers/libreportal/frontend/css/config.css @@ -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; diff --git a/containers/libreportal/frontend/js/components/config/config-manager.js b/containers/libreportal/frontend/js/components/config/config-manager.js index 4f1ce6d..83f23ab 100755 --- a/containers/libreportal/frontend/js/components/config/config-manager.js +++ b/containers/libreportal/frontend/js/components/config/config-manager.js @@ -144,7 +144,7 @@ if (typeof window.ConfigManager === 'undefined') { '' + ''; - configSection.innerHTML = headerHTML + '
' + formHTML + '
' + + configSection.innerHTML = headerHTML + '' + formHTML + '
' + '