From b44d120d7d51f8b5d0a9ffc523c76e1e83002425 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Tue, 24 Nov 2026 23:03:57 +0100 Subject: [PATCH] feat(options): sticky header as label + 3 standalone checkboxes (Prompt L) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.xml: the three headersticky* checkboxes lose parent="headersticky" and get width=12 (stacked as a vertical list); the master key headersticky stays in config.xml/DB for backward compatibility but is rendered as a static label only (special case in options.twig — no input). Views: custom_header.twig emits the per-breakpoint fixed-top media queries based on the three checkboxes alone (master gate dropped; defaults on/on/off when undefined); nav_bar.twig fallback now keys off headerstickycomputer being defined. Migration note: an old row with headersticky=off no longer disables sticky — only the checkboxes govern it. Verified: CLI render row 270 — top-of-page pane shows the label + 3 checkboxes (col-md-12, no parent, checked on/on/off, no option-visibility); survey 282267 renders media queries for computer+tablet but not mobile and no hardcoded fixed-top; jsdom toggle/serialize + radio idempotency PASS; run_all PASS; export green. Variants NOT rebuilt yet (config.xml batch — rebuild+reset once after Prompt U per standing rule). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- config.xml | 23 ++++++++++++++--------- options/options.twig | 7 ++++++- views/subviews/header/custom_header.twig | 24 ++++++++++++------------ views/subviews/header/nav_bar.twig | 13 +++++++------ 4 files changed, 39 insertions(+), 28 deletions(-) diff --git a/config.xml b/config.xml index dac762c..1a8a09c 100644 --- a/config.xml +++ b/config.xml @@ -142,15 +142,20 @@ - on - on - on - off + tablet = md..lg (768-991px), computer >= lg (992px). nav_bar.twig no + longer hardcodes fixed-top; custom_header.twig emits the media + queries. Defaults: sticky on computer + tablet, NOT on mobile. --> + + on + on + on + off