fix(options): row 198 — restore 3-column section layouts in the Questions tab; make border radii a real 2x2 subcolumn grid

- aQSlots back to the row 178 plan / row 195 layouts: title = 3 columns
  (col 1 font+font color+size+options+legacy picker, col 2 title bg
  chooser, col 3 body bg chooser), answers = col 1 font+font color,
  col 2 checkbox chooser (column 2 as row 195), help = 3 columns
  (col 1 font+font color, col 2 bg chooser, col 3 text position);
  config.xml order already matched, only the slots changed
- border radii: the col-md-6 wrappers sat directly in the block-level
  col-md-4 column, so width:50% stacked them vertically instead of two
  per row — .questions-col-border-2 is now display:flex + flex-wrap,
  so TL/TR form row 1, the hr its own line, BL/BR (border-start) row 2
- config.xml: refreshed the stale Questions-tab comment to describe the
  section layout; all variants rebuilt + example config synced

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-29 16:47:12 +01:00
commit 95c95dd8f6

View file

@ -205,6 +205,17 @@
.tab-content .border-start {
border-left-color: #5e5c64 !important;
}
/* row 198: the "Question border" section's third column (questions-col-border-2)
holds the four radius options as col-md-6 wrappers (2x2 subcolumns). A Bootstrap
col-* is display:block, so without this the width:50% wrappers would STACK
vertically instead of sitting two per row. Making the column itself a flex row
turns the wrappers into real flex items: TL TR on row 1, the col-12 hr on its
own line, BL BR (border-start) on the last row. */
.tab-content .questions-col-border-2 {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
}
/* row 143/145: in the color picker input group the swatch part (.input-group-text
holding input[type=color]) must be exactly as high as the text input. Setting
the height only on the inner color input was not enough in the real admin page,
@ -344,23 +355,29 @@
{ 'id': 'help', 'h3': 'Question help', 'colClass': 'col-md-4' },
{ 'id': 'border', 'h3': 'Question border', 'colClass': 'col-md-4' }
] %}
{# row 197: title-section keys (font, font color, size, options, legacy picker,
title bg chooser, body bg chooser) all stack in ONE column (title:0) so the
background choosers align with the font color; the checkbox chooser aligns
with the answers font color (answers:0); the help background chooser aligns
with the help font color (help:0), only the text position gets help:1.
{# row 198 (back to the row 178 plan P2/P3 + row 195 layouts): every section is a
THREE-column grid (colClass col-md-4) and the columns are filled side by side,
so related choosers sit next to each other on one row:
title: col 1 = font + font color (+custom) + size + options + legacy picker (P2),
col 2 = title background chooser (+custom), col 3 = body background chooser (+custom)
answers: col 1 = font + font color (+custom), col 2 = checkbox/radiobutton chooser (+custom) (row 195)
help: col 1 = help font + font color (+custom), col 2 = help background chooser (+custom),
col 3 = help text position (row 195)
border: col 1 = border type, col 2 = color/style/shadow children, col 3 = the four radii (2x2)
The config.xml order inside the Questions category already matches this grouping,
so each slot renders as exactly one column.
NOTE: no {# #} comments inside the array literal (twig SyntaxError). #}
{% set aQSlots = {
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
'questiontitlefont': 'title:0', 'questiontitletextcolor': 'title:0', 'questiontitletextcolorcustom': 'title:0',
'questiontitlefontsize': 'title:0', 'questiontitlefontoptions': 'title:0', 'questiontitlefontcolor': 'title:0',
'questiontitlebackgroundcolor': 'title:0', 'questiontitlebackgroundcolorcustom': 'title:0',
'questionbackgroundcolor': 'title:0', 'questionbackgroundcolorcustom': 'title:0',
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0',
'checkboxcolor': 'answers:0', 'checkboxcolorcustom': 'answers:0',
'checkboxcolor': 'answers:1', 'checkboxcolorcustom': 'answers:1',
'questionhelpfont': 'help:0', 'questionhelpfontcolor': 'help:0', 'questionhelpfontcolorcustom': 'help:0',
'questionhelpbackgroundcolor': 'help:0', 'questionhelpbackgroundcolorcustom': 'help:0',
'questionhelptextposition': 'help:1',
'questionhelpbackgroundcolor': 'help:1', 'questionhelpbackgroundcolorcustom': 'help:1',
'questionhelptextposition': 'help:2',
'questionborder': 'border:0',
'questionbordercolor': 'border:1', 'questionbordercolorcustom': 'border:1', 'questionborderstyle': 'border:1', 'questiondropdown': 'border:1',
'questionborderradiusTL': 'border:2', 'questionborderradiusTR': 'border:2',