feat(options): Images tab stacks all options in column 1 of a three-column grid (Prompt P)

options.twig: the Images pane wraps its option row in a single
col-md-4 (columns 2-3 stay empty, like the Prompt M logo block but
single-column); the upload block below stays full width.
config.xml: the five background options are width=12 (consistent with
Prompt O), so each wrapper is full width of that column and the options
stack vertically. Prompt Q conditional visibility keeps working inside
the column.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-25 08:49:08 +01:00
commit 7e58142d35
2 changed files with 14 additions and 5 deletions

View file

@ -129,11 +129,13 @@
<!-- Prompt Q: order fixed — Background image, then Overall background color
(always relevant), then the three image-detail options which are only
relevant when a background image is shown (parent="backgroundimage",
shown/hidden via .option-visibility in options.twig/options.js). -->
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
shown/hidden via .option-visibility in options.twig/options.js).
Prompt P: all five width=12 — the Images pane renders them stacked in
column 1 of a three-column grid (only that column is used). -->
<backgroundimage type="buttons" category="Images" width="12" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<bodybackgroundcolor type="colorpicker" category="Images" width="12" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
<backgroundimagefixed type="buttons" category="Images" width="12" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
<backgroundimagedisplay type="buttons" category="Images" width="12" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
<!-- Questions

View file

@ -226,6 +226,12 @@
<div role="tabpanel" class="CoreThemeOptions--settingsTab tab-pane {% if loop.first %}active{% endif %}"
id="{{ tab.id }}" aria-labelledby="tab-{{ tab.id }}">
<div class="row action_hide_on_inherit">
{# Prompt P: in the Images pane use the three-column grid like the logo
block (Prompt M), but fill ONLY column 1 — all Images options stack
vertically in this single col-md-4 (their width=12 makes each wrapper
full width of the column). Columns 2-3 stay empty. The upload block
below stays full width. #}
{% if tab.category == 'Images' %}<div class="col-md-4 images-options-column">{% endif %}
{% for key in aTabKeys %}
{% set attr = aOptionAttributes.optionAttributes[key] ?? null %}
{% if attr is not null %}
@ -460,6 +466,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% if tab.category == 'Images' %}</div>{% endif %}
</div>
{% if tab.category == 'Images' %}