feat(options): rename navbarfontcolor to "Text color in header"; re-measure header alignment on tab show
Row 142, two changes: 1. The navbarfontcolor option is renamed "Menu item color in header" -> "Text color in header" (child: "Custom text color in header ..."). Labels are read live from config.xml, no reset needed. 2. The header background color column alignment (row 136) is now re-measured when the Top-of-page tab is shown (shown.bs.tab) and on window resize, and after the stored-tab restore (row 133) when that tab is Top-of-page. Reason: at page load the Top-of-page pane is usually hidden (display:none), where getBoundingClientRect returns 0 — so the one-shot measurement in run() computed a 0 offset and the background column was never lowered on the real page. OPTIONS_JS_TOKEN -> 20261126.17. Verified: render tc=663 (new label, old label gone, options.js?v=20261126.17), jsdom 7/7 incl. new pins (padding re-applied on shown.bs.tab, label renamed), export exit 0. Variants not rebuilt (deferred). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
53a11e14e1
commit
cd62f2f752
1 changed files with 26 additions and 8 deletions
|
|
@ -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.16' %}
|
||||
{% set OPTIONS_JS_TOKEN = '20261126.17' %}
|
||||
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
|
||||
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
|
||||
|
||||
|
|
@ -371,7 +371,7 @@
|
|||
{% elseif bTopPane %}
|
||||
{% if key in aLogoKeys %}{% set fSlot = 'logo' %}
|
||||
{# row 136: header row layout — col 1 = font (headerfont) with the
|
||||
menu item color (navbarfontcolor + custom) stacked below it,
|
||||
text color in header (navbarfontcolor + custom) stacked below it,
|
||||
col 2 = header background color (aligned with the color option
|
||||
via a measured padding-top, see alignHeaderColumns in options.js),
|
||||
col 3 = sticky. Slots: h1 opens the row + col 1 (further h1 keys
|
||||
|
|
|
|||
Loading…
Reference in a new issue