neayi / tripleperformance

The docker stack for the Triple Performance platform
https://tripleperformance.fr
MIT License
7 stars 1 forks source link

Ne pas afficher les avatars quand il n'y a qu'une ou deux personnes #315

Closed bertrandgorge closed 1 year ago

bertrandgorge commented 1 year ago
bertrandgorge commented 1 year ago

Pour le second point il faut ajouter la CSS suivante :

.interaction-bloc .avatars .avatar img {
    width: 42px;
    height: 42px;
    object-fit: cover;
}
bertrandgorge commented 1 year ago

Exemple de page avec un seul avatar : https://wiki.tripleperformance.fr/wiki/Robot_de_d%C3%A9sherbage

bertrandgorge commented 1 year ago

Pour le nombre d'avatars, tester en ajoutant ces deux lignes :

            if (usersToShow.length < 2)
                return;

à la ligne 964 de extensions/NeayiInteractions/resources/NeayiInteractions.js