fix(options): keep navbarfontcolorcustom in column 2, full-width swatch chips
The new navbarfontcolorcustom picker fell into the generic 'rest' slot of the Top-of-the-page layout, which opened a NEW col-md-4 — so the picker landed in column 3 next to the sticky checkboxes and left the divs unbalanced. Map the key to slot h2 so it stays in column 2 under the navbarfontcolor dropdown, rendered col-12 (full column width); column 3 is the sticky block again and the pane markup is balanced (89/89 divs). The swatch chips under the dropdown were tiny inline squares — make the chips row full column width with taller flex chips showing the hex value (options.js chip.text). OPTIONS_JS_TOKEN bumped to 20261126.2 (options.js changed). Layout pinned by jsdom assertions (picker in the same col-md-4 as the dropdown, wrapper col-12); suite 6/6, export 0. Variants intentionally not rebuilt (owner: deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
f2ebf24270
commit
dc27d63de5
2 changed files with 18 additions and 8 deletions
|
|
@ -793,6 +793,7 @@ var ThemeOptions = function () {
|
|||
var mode = String(chip.data('mode'));
|
||||
var c = currentColor(presets[mode]);
|
||||
chip.css('background', c || 'transparent');
|
||||
chip.text(c || '');
|
||||
chip.attr('title', mode + (c ? ' [' + c + ']' : ''));
|
||||
chip.attr('aria-label', chip.attr('title'));
|
||||
chip.toggleClass('active', String(sel.val()) === mode);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
|
||||
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
|
||||
options/options.js changes, so every browser fetches the new file once. #}
|
||||
{% set OPTIONS_JS_TOKEN = '20261126.1' %}
|
||||
{% set OPTIONS_JS_TOKEN = '20261126.2' %}
|
||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||
|
||||
|
|
@ -285,6 +285,7 @@
|
|||
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h1' %}
|
||||
{% elseif key == 'headerfont' %}{% set fSlot = 'hf' %}
|
||||
{% elseif key == 'navbarfontcolor' %}{% set fSlot = 'h2' %}
|
||||
{% elseif key == 'navbarfontcolorcustom' %}{% set fSlot = 'h2' %}
|
||||
{% elseif key in aTopStickyKeys %}{% set fSlot = 'h3' %}
|
||||
{% elseif key == 'progressbarposition' %}{% set fSlot = 'ppos' %}
|
||||
{% elseif key == 'progressbarfont' %}{% set fSlot = 'pfont' %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue