From da9589b9626f0d834a94ad6dcc2a55999ffe5fe2 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Sun, 29 Nov 2026 13:10:28 +0100 Subject: [PATCH] fix(options): checkbox rows equally compact everywhere (form-check mb-1, no mb-3 wrapper) In the Header tab the 'Make header sticky' checkboxes were wrapped in the generic mb-3 option div (1rem gap between rows), while the Logos row's 'Show logo on' checkboxes use .form-check.mb-1 (0.25rem). The generic checkbox branch now renders .form-check.mb-1 and the wrapper div carries no mb-3 for checkbox type, so the distance between checkbox+label rows is the same in every row. jsdom: new row-176 assertions (suite 8/8), inherit page renders 12x form-check mb-1 and 0x plain form-check. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- options/options.twig | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/options/options.twig b/options/options.twig index a039078..5ca8532 100644 --- a/options/options.twig +++ b/options/options.twig @@ -689,7 +689,11 @@ {% if bImagesPane and key == 'backgroundimage' %}

{% endif %}
-
+ {# row 176: checkbox options get NO mb-3 wrapper margin — the + .form-check itself carries mb-1 (same as the "Show logo on" + checkboxes in the Logos row), so checkbox groups are equally + compact everywhere #} + {# label ALWAYS above the control, for every option type EXCEPT checkbox (checkboxes carry their label to the RIGHT of the box, rendered in the checkbox branch below). d-block so the label gets its own line @@ -731,8 +735,11 @@ label keeps the same id (lbl_simple_edit_options_) so tests/JS anchors keep working. With survey-level inherit, an untouched box keeps the value "inherit" (options.js: data was-inherit). Children - of a parent switch get selector_radio_childfield + data-parent. #} -
+ of a parent switch get selector_radio_childfield + data-parent. + Row 176: mb-1 on the .form-check (exactly like the "Show logo on" + boxes in the Logos row) — the distance between the checkbox rows + is then the same in every row of the page. #} +