diff --git a/components/FicheDetail.vue b/components/FicheDetail.vue index d88007f..32f33ed 100644 --- a/components/FicheDetail.vue +++ b/components/FicheDetail.vue @@ -35,14 +35,14 @@ -
Description communauté
{{ descriptionUser }}
+
@@ -100,7 +100,7 @@ - Points clés + Points clés - + Carte… @@ -153,7 +153,7 @@ - + Tes suggestions seront transmises à l'équipe AEP par email. @@ -184,7 +184,7 @@ {{ reportError }} {{ reportSuccess }} - + {{ reportMessage.length }}/500 @@ -331,7 +331,8 @@ async function initMap(el: HTMLElement) { iconAnchor: [7, 7], }) - L.marker([lat, lng], { icon }).addTo(map) + // Épingle décorative : ni clic ni clavier (la mini-carte est une image, nommée par son conteneur) + L.marker([lat, lng], { icon, interactive: false, keyboard: false }).addTo(map) } @@ -342,7 +343,7 @@ async function initMap(el: HTMLElement) { align-items: center; gap: 6px; font-size: 0.78rem; - color: var(--nav-text-muted); + color: color-mix(in srgb, var(--nav-text) 78%, transparent); background: none; border: none; cursor: pointer; diff --git a/components/VueFiches.vue b/components/VueFiches.vue index e07f55c..fc6cf51 100644 --- a/components/VueFiches.vue +++ b/components/VueFiches.vue @@ -459,11 +459,18 @@ watch(() => props.vf.ficheId, (id, avant) => { }) function clavierDetail(e: KeyboardEvent) { - if (e.key === 'Escape') { e.preventDefault(); props.vf.fermerFiche(); return } + const t = e.target as HTMLElement + const champ = !!t.closest('input, textarea, select, [contenteditable="true"]') + if (e.key === 'Escape') { + e.preventDefault() + // Échap dans un champ (commentaire, signalement) le quitte d'abord : un brouillon ne se perd pas d'une touche + if (champ) { detail.value?.focus({ preventScroll: true }); return } + props.vf.fermerFiche() + return + } if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight') return if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return - const t = e.target as HTMLElement - if (t.closest('input, textarea, select, [contenteditable="true"]')) return + if (champ) return e.preventDefault() if (e.key === 'ArrowLeft') props.vf.fichePrecedente() else props.vf.ficheSuivante() diff --git a/pages/agences.vue b/pages/agences.vue index e807ec6..bfc83e3 100644 --- a/pages/agences.vue +++ b/pages/agences.vue @@ -250,7 +250,8 @@ onMounted(() => { } catch {} }) -useHead({ title: "AEP - Réseaux de bifurcation architecturale" }) +// Une fiche ouverte donne son nom à l'onglet (les données arrivent après le rendu serveur ici) +useHead({ title: computed(() => (vf.ficheOuverte ? `${vf.ficheOuverte.nom} — AEP` : 'AEP - Réseaux de bifurcation architecturale')) })
Points clés
Tes suggestions seront transmises à l'équipe AEP par email.
{{ reportError }}
{{ reportSuccess }}
{{ reportMessage.length }}/500