From 7f8b36d71c17ae620887e1419a381ef929397c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20N=C3=A9ny?= Date: Fri, 6 Nov 2026 15:41:22 +0100 Subject: [PATCH] =?UTF-8?q?Maison=20filaire=20(lot=20=E2=91=A3)=20:=20le?= =?UTF-8?q?=20compteur=20de=20la=20poign=C3=A9e=20compte=20les=20=C3=A9tap?= =?UTF-8?q?es=20de=20la=20maison=20;=20quatre=20onglets=20tiennent=20sur?= =?UTF-8?q?=20390=20px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01PWGVn3MeAPFsoCSyLs2zZW --- maquette/main.js | 3 ++- maquette/style.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/maquette/main.js b/maquette/main.js index 1d71e97..1153009 100644 --- a/maquette/main.js +++ b/maquette/main.js @@ -198,7 +198,8 @@ function recadrer(duree = 700) { // La barre repliée : le picto, le titre et le compteur de la fiche courante. function majPoignee(f = E.mini || liste()[E.i]) { if (!f) return; - const L = E.mini ? [] : liste().filter((x) => x.chapitre === f.chapitre), k = L.indexOf(f); + const S = E.modeS && echelleDe(f.cadrage) === 'S'; // en S, on compte les étapes de la maison + const L = E.mini ? [] : liste().filter((x) => x.chapitre === f.chapitre && (!S || indexDe(ETAPES, x.id) >= 0)), k = L.indexOf(f); $('p-icone').innerHTML = picto(f.picto, BULLES); $('p-titre').innerHTML = f.titre; $('p-compte').textContent = L.length > 1 ? `${k + 1} / ${L.length}` : ''; diff --git a/maquette/style.css b/maquette/style.css index ce9de55..fd73f64 100644 --- a/maquette/style.css +++ b/maquette/style.css @@ -96,6 +96,7 @@ body[data-echelle="XL"] #b-tourner, body.bandeau-plein #b-tourner { display: non #fiches[data-etat="fil"] .corps > .fil { flex: 1 1 0; } #fiches[data-etat="fil"] .corps > .pied { flex: none; margin-left: auto; } #fiches[data-etat="fil"] .pied .compteur { display: none; } +body[data-echelle="S"] .onglets button { padding: 5px 9px; gap: 5px; letter-spacing: .02em; } /* quatre onglets tiennent sur 390 px */ @media (max-width: 899px) { #fiches[data-etat="fil"] :is(#b-prec, #b-suiv) { display: none; } } /* un logo allumé : l'anneau de la couleur du chapitre, 1,08 d'échelle (« comme t'inviter à cliquer ») */ #points .maillon.allume { opacity: 1; filter: none; transform: scale(1.08); box-shadow: 0 0 0 2px var(--c-fond, #fff), 0 0 0 4px var(--c, var(--encre)); }