-
Notifications
You must be signed in to change notification settings - Fork 5
feat(stage3eme): ajout metier proposé resultats recherche #2592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(stage3eme): ajout metier proposé resultats recherche #2592
Conversation
@@ -61,6 +61,7 @@ function ResultatStage3eEt2de(stage3eEt2de: Stage3eEt2de) { | |||
sousTitreOffre={<> | |||
<p>{stage3eEt2de.domaine}</p> | |||
<p>{stage3eEt2de.adresse.rueEtNumero}, {stage3eEt2de.adresse.codePostal} {stage3eEt2de.adresse.ville}</p> | |||
<p>{stage3eEt2de.appellationLibelle.map((appellationLibelle) => appellationLibelle).join(', ')}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ça me chagrinait de ne pas voir de liste alors j'ai testé avec 😄
Il faut un peu de CSS mais voici la proposition :
<p>{stage3eEt2de.appellationLibelle.map((appellationLibelle) => appellationLibelle).join(', ')}</p> | |
<ul className={styles.listeMetier}>{stage3eEt2de.appellationLibelle.map((appellationLibelle) => <li key={appellationLibelle}><p>{appellationLibelle}</p></li>)}</ul> |
CSS :
.listeMetier {
list-style-type: none;
> li {
display: inline;
> p {
display: inline;
}
}
> li::before {
content: ', ';
}
> li:first-of-type::before{
content: none;
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😭 oke bien vu 👍
J'ai mis un message ici pour voir si on ajouterait pas un petit espacement supplémentaire, à voir : |
7a0d4c3
to
7a76c51
Compare
No description provided.