From b803f6291d5ce92fed4237712662c22fb65c46c7 Mon Sep 17 00:00:00 2001 From: IliesAllali Date: Wed, 28 Oct 2026 22:51:28 +0100 Subject: [PATCH] =?UTF-8?q?Fiche=20:=20=C2=AB=20=E2=80=93=201995=20=C2=BB?= =?UTF-8?q?=20ne=20se=20coupe=20plus=20apr=C3=A8s=20le=20tiret=20;=20bouto?= =?UTF-8?q?n=20loupe=20nomm=C3=A9=20=C2=AB=20Zoomer=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Une espace insécable seule ne suffit pas : Chrome coupe après un tiret demi-cadratin. Le gluon U+2060 devant l'espace insécable garde « – 1995 » d'un bloc (vu sur la fiche de Robert, démo, 1440 px). Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/PersonCard.jsx | 4 +++- frontend/src/components/ZoomControl.jsx | 2 +- frontend/src/i18n/en/arbre.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/PersonCard.jsx b/frontend/src/components/PersonCard.jsx index dd8d9c4..7b3d23f 100644 --- a/frontend/src/components/PersonCard.jsx +++ b/frontend/src/components/PersonCard.jsx @@ -631,7 +631,9 @@ const PersonCard = ({ // : un lieu en arabe ou en hébreu ne retourne pas l'ordre de la ligne (« 1980, الدار البيضاء · 46 ans ») if (born) parts.push(person.birthPlace ? <>{born}, {formatPlace(person.birthPlace)} : born) if (!person.isAlive) parts.push(died || '?') - return parts.length ? parts.reduce((line, part) => <>{line} – {part}) : null + // « – 1995 » passe entier à la ligne : Chrome coupe après un tiret même suivi d'une espace insécable, + // le gluon U+2060 l'en empêche + return parts.length ? parts.reduce((line, part) => <>{line} –{'\u2060\u00a0'}{part}) : null })() const ageLabel = age === null ? null : person.isAlive ? t('{age} ans', { age }) : t('{age} ans au décès', { age }) // Une seule ligne sous le nom : surnom, repères de vie, âge, séparés par un point médian diff --git a/frontend/src/components/ZoomControl.jsx b/frontend/src/components/ZoomControl.jsx index f1f5d93..ad81326 100644 --- a/frontend/src/components/ZoomControl.jsx +++ b/frontend/src/components/ZoomControl.jsx @@ -139,7 +139,7 @@ export default function ZoomControl({ zoomApiRef }) { diff --git a/frontend/src/i18n/en/arbre.js b/frontend/src/i18n/en/arbre.js index 57c7f8e..c9dc540 100644 --- a/frontend/src/i18n/en/arbre.js +++ b/frontend/src/i18n/en/arbre.js @@ -23,7 +23,7 @@ export default { 'Lien': 'Link', // Contrôles - 'Contrôle du zoom': 'Zoom control', + 'Zoomer': 'Zoom in', 'En cours': 'Loading', // Annotations