From 03a382c26ea1646bfba91da129a2737bc34b1e8b Mon Sep 17 00:00:00 2001 From: Jules Neny Date: Tue, 3 Nov 2026 14:37:50 +0100 Subject: [PATCH] =?UTF-8?q?fix(nav):=20sans=20fl=C3=A8che=20sur=20les=20ca?= =?UTF-8?q?rtes,=20min-width=20seulement,=20zone=20de=20navigation=20nomm?= =?UTF-8?q?=C3=A9e,=20espacements=20en=20tokens=20(checkpoint=20B14b=20du?= =?UTF-8?q?=2003/11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01PWGVn3kY4vPBaWF9EFkZbz --- components/NavPortes.vue | 8 ++++++-- components/VoletEchelle.vue | 7 +++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/NavPortes.vue b/components/NavPortes.vue index 7370ee1..9441f9f 100644 --- a/components/NavPortes.vue +++ b/components/NavPortes.vue @@ -20,6 +20,7 @@ :actif="courant?.echelle ?? null" :lien="lienEntree" courant="page" + libelle="Échelles S, M, XL : ouvrir une échelle" :nom="false" :bouton="{ ouvert, controle: ID_VOLET, choisir: basculer }" /> @@ -194,13 +195,16 @@ onBeforeUnmount(() => { .nav-portes__pas :deep(.pas__item + .pas__item)::before { width: 16px; } .nav-portes__ici { display: block; } } -/* 768-1023 : l'échelle et l'onglet l'un sous l'autre (la barre est étroite) */ -@media (min-width: 768px) and (max-width: 1023px) { +/* À partir de 768 : l'échelle et l'onglet l'un sous l'autre (la barre est étroite) ; sur une ligne à partir de 1024 (min-width seulement, PROTOCOLE) */ +@media (min-width: 768px) { .nav-portes__echelle, .nav-portes__onglet { display: block; white-space: nowrap; } .nav-portes__sep { display: none; } } @media (min-width: 1024px) { + .nav-portes__echelle, + .nav-portes__onglet, + .nav-portes__sep { display: inline; } .nav-portes__ici { white-space: nowrap; } } diff --git a/components/VoletEchelle.vue b/components/VoletEchelle.vue index 58541b9..ecb3e36 100644 --- a/components/VoletEchelle.vue +++ b/components/VoletEchelle.vue @@ -57,7 +57,7 @@ :class="{ 'volet__carte--courante': o.actif(route) }" :aria-current="o.actif(route) ? 'page' : undefined" @click="emit('choisi')" - >{{ o.libelle }} + >{{ o.libelle }}

@@ -209,7 +209,7 @@ defineExpose({ premierFocus }) align-items: center; justify-content: center; min-width: 1.75rem; - padding: 2px 6px; + padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); @@ -224,7 +224,7 @@ defineExpose({ premierFocus }) .volet__mots { display: flex; flex-wrap: wrap; - gap: 2px 0; + gap: var(--space-2xs) 0; margin: var(--space-xs) 0 0; padding: 0; list-style: none; @@ -249,7 +249,6 @@ defineExpose({ premierFocus }) .volet__carte { display: flex; align-items: center; - justify-content: space-between; gap: var(--space-xs); min-height: 48px; height: 100%;