diff --git a/css/style.css b/css/style.css index 50bef1c..361441c 100644 --- a/css/style.css +++ b/css/style.css @@ -102,6 +102,14 @@ footer { text-align: center; } +.panneau_details_3 { + display: inline; + justify-content: center; + width: 100%; + overflow-y: auto; + text-align: center; +} + .unecarte { display: inline-block; background-color: tomato; diff --git a/static/menu.php b/static/menu.php index c28c4f7..033347c 100644 --- a/static/menu.php +++ b/static/menu.php @@ -1,7 +1,9 @@ \ No newline at end of file diff --git a/vues/creerPartie_vue.php b/vues/creerPartie_vue.php index 9a71969..bacc9ca 100644 --- a/vues/creerPartie_vue.php +++ b/vues/creerPartie_vue.php @@ -134,7 +134,7 @@ function formulaire_ordre_joueurs(int $idpartie) ?> -
Joueurs :
'; - foreach ($joueurs as $joueur) { - $couleur = $joueur['couleur_pion']; - $couleur_hex = "000000"; - if (!is_null($couleur)) { - $couleur_hex = dechex($couleur); - } + for ($i = 0; $i < count($joueurs); $i++) { + $joueur = $joueurs[$i]; + $couleur_hex = (new CouleurPion())->couleurs[$i]; echo '' . $joueur['pseudo'] . " (" . $joueur['prenom'] . " " . $joueur['nom'] . ')
'; } echo '