From 84bd977f876db00ebfe31fa0ae13dc3d06c152b6 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Wed, 17 Jan 2024 20:29:00 -0300 Subject: [PATCH] Add a few CSS classes - add class `row` to form-group (because it contains columns) and move the tag to the details function - add class `col-sm-12` to boolean values - add new class `settings-box` to allow targeting only settings boxes Signed-off-by: RD WebDesign --- scripts/pi-hole/js/settings-advanced.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/settings-advanced.js b/scripts/pi-hole/js/settings-advanced.js index b110c972..44e0a31a 100644 --- a/scripts/pi-hole/js/settings-advanced.js +++ b/scripts/pi-hole/js/settings-advanced.js @@ -104,6 +104,7 @@ function valueDetails(key, value) { case "boolean": { content += + '
' + '
Enabled ' + defaultValueHint + - "" + + "
" + "
"; break; @@ -262,7 +263,7 @@ function valueDetails(key, value) { } } - return content; + return '
' + content + "
"; } function generateRow(topic, key, value) { @@ -292,9 +293,8 @@ function generateRow(topic, key, value) { "

" + "" + '
' + - '
' + valueDetails(key, value) + - "
"; + " "; var topKey = key.split(".")[0]; var elem = $("#advanced-content-" + topKey + "-flex");