diff --git a/frontend/src/components/PersonCard.css b/frontend/src/components/PersonCard.css index bbd24b4..035e51a 100644 --- a/frontend/src/components/PersonCard.css +++ b/frontend/src/components/PersonCard.css @@ -305,9 +305,6 @@ .pc-quick-edit:focus-visible { outline: 2px solid var(--pz-a500); outline-offset: 2px; } @media (hover: hover) and (pointer: fine) { .pc-quick-edit:hover { background: var(--pz-line-soft); } } -/* Ajouter un proche depuis la fiche en lecture (1.5.1) */ -.pc-quick-add { display: flex; flex-wrap: wrap; gap: 6px; } -.pc-quick-add .pz-btn { gap: 4px; } /* « Créer « Jeanne » comme parent » sous la recherche d'un proche */ .pc-search-create .pc-rel-avatar { color: var(--pz-a700); background: var(--pz-a50); } .pc-search-create em { color: var(--pz-muted); font-style: normal; } diff --git a/frontend/src/components/PersonCard.jsx b/frontend/src/components/PersonCard.jsx index a848160..8efd1d5 100644 --- a/frontend/src/components/PersonCard.jsx +++ b/frontend/src/components/PersonCard.jsx @@ -1054,12 +1054,13 @@ const PersonCard = ({ {/* Ajouter un proche sans passer par « Modifier » puis l'onglet Relations (1.5.1) */} {!editMode && onCreateRelative && ( -
- - - + // Les mêmes pastilles que « + Surnom », « + Métier » en modification (Patch, 26/10) +
+ + + {parentsList.length > 0 && ( - + )}
)}