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 <vibe@mistral.ai>
This commit is contained in:
parent
4d5f66e1f5
commit
da9589b962
1 changed files with 10 additions and 3 deletions
|
|
@ -689,7 +689,11 @@
|
||||||
{% if bImagesPane and key == 'backgroundimage' %}<div class="col-12"><hr class="images-col1-hr"></div>{% endif %}
|
{% if bImagesPane and key == 'backgroundimage' %}<div class="col-12"><hr class="images-col1-hr"></div>{% endif %}
|
||||||
<div class="{{ wrapClass }} {% if attr.parent != '' %}option-visibility{% if bParentHidden and not bDisableMode %} d-none{% endif %}{% endif %}"
|
<div class="{{ wrapClass }} {% if attr.parent != '' %}option-visibility{% if bParentHidden and not bDisableMode %} d-none{% endif %}{% endif %}"
|
||||||
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% if bDisableMode %} data-show-if-mode="disable"{% endif %}{% endif %}>
|
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% if bDisableMode %} data-show-if-mode="disable"{% endif %}{% endif %}>
|
||||||
<div class="mb-3">
|
{# 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 #}
|
||||||
|
<div{% if attr.type != 'checkbox' %} class="mb-3"{% endif %}>
|
||||||
{# label ALWAYS above the control, for every option type EXCEPT checkbox
|
{# label ALWAYS above the control, for every option type EXCEPT checkbox
|
||||||
(checkboxes carry their label to the RIGHT of the box, rendered in
|
(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
|
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_<key>) so tests/JS
|
label keeps the same id (lbl_simple_edit_options_<key>) so tests/JS
|
||||||
anchors keep working. With survey-level inherit, an untouched box
|
anchors keep working. With survey-level inherit, an untouched box
|
||||||
keeps the value "inherit" (options.js: data was-inherit). Children
|
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.
|
||||||
<div class="form-check">
|
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. #}
|
||||||
|
<div class="form-check mb-1">
|
||||||
<input type="checkbox" value="on"
|
<input type="checkbox" value="on"
|
||||||
{% if currentValue == 'on' %}checked{% endif %}
|
{% if currentValue == 'on' %}checked{% endif %}
|
||||||
class="form-check-input selector_option_checkbox_field {% if attr.parent != '' %}selector_radio_childfield{% endif %}"
|
class="form-check-input selector_option_checkbox_field {% if attr.parent != '' %}selector_radio_childfield{% endif %}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue