Correction de l'alignement, dimensions et détection des box de quai sur Classiques Départs et Arrivées

This commit is contained in:
mathis committed 2026-08-30 22:50:31 +02:00
1 parent 326e3e7c8b
commit c9a93d4f16
4 files changed
+43 -18

No files matched your search

@@ -91,7 +91,7 @@
max-height: 108px; max-height: 108px;
box-sizing: border-box; box-sizing: border-box;
padding-left: 20px; padding-left: 20px;
padding-right: 240px; /* Espace réservé pour le texte vertical arrivées */ padding-right: 24px;
position: relative; position: relative;
z-index: 2; z-index: 2;
overflow: hidden; overflow: hidden;
@@ -178,6 +178,7 @@
white-space: nowrap; white-space: nowrap;
font-family: "Achemine", sans-serif; font-family: "Achemine", sans-serif;
} }
/* Colonne 4 : Provenance (Gare d'origine) */ /* Colonne 4 : Provenance (Gare d'origine) */
.aff-classiques-arrivees__col-destination { .aff-classiques-arrivees__col-destination {
flex: 1 1 0; flex: 1 1 0;
@@ -186,7 +187,7 @@
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
padding-left: 10px; padding-left: 10px;
padding-right: 16px; padding-right: 20px;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
@@ -205,19 +206,21 @@
/* Colonne 5 : Quai / Voie */ /* Colonne 5 : Quai / Voie */
.aff-classiques-arrivees__col-platform { .aff-classiques-arrivees__col-platform {
width: 90px; width: 120px;
min-width: 90px; min-width: 120px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
position: relative;
z-index: 20;
} }
.aff-classiques-arrivees__platform-box { .aff-classiques-arrivees__platform-box {
width: 58px; width: 104px;
height: 58px; height: 76px;
border: 3.5px solid var(--white); border: 3.5px solid var(--white);
border-radius: 8px; border-radius: 12px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -227,8 +230,9 @@
.aff-classiques-arrivees__platform-text { .aff-classiques-arrivees__platform-text {
color: var(--white); color: var(--white);
font-size: 44px; font-size: 58px;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
font-family: "Achemine", sans-serif; font-family: "Achemine", sans-serif;
text-align: center;
} }
@@ -1218,7 +1218,16 @@ export default function ClassiquesArrivees(){
const time = horaire._displayTime || formatTimeNoSeconds(horaire.heure_arrivee || horaire.arrival_time || horaire.time || horaire.heure || ''); const time = horaire._displayTime || formatTimeNoSeconds(horaire.heure_arrivee || horaire.arrival_time || horaire.time || horaire.heure || '');
const origin = horaire.gare_depart_nom || horaire.gare_depart || horaire.origine || ''; const origin = horaire.gare_depart_nom || horaire.gare_depart || horaire.origine || '';
const formattedOrigin = formatStationName(origin); const formattedOrigin = formatStationName(origin);
const rawPlatform = (horaire._displayPlatform || horaire.voie || horaire.quai || '').toString().trim(); const rawPlatform = (
horaire._displayPlatform ||
horaire.quai ||
horaire.voie ||
horaire.platform ||
horaire.platform_code ||
horaire.track ||
(horaire.stop_point && horaire.stop_point.platform_code) ||
''
).toString().trim();
const cleanPlatform = formatPlatform(rawPlatform); const cleanPlatform = formatPlatform(rawPlatform);
const stationId = horaire.gare_arrivee_id || horaire.gare_id || horaire.destination_id || (gareIdParam || null); const stationId = horaire.gare_arrivee_id || horaire.gare_id || horaire.destination_id || (gareIdParam || null);
@@ -91,7 +91,7 @@
max-height: 108px; max-height: 108px;
box-sizing: border-box; box-sizing: border-box;
padding-left: 20px; padding-left: 20px;
padding-right: 240px; /* Espace réservé pour le texte vertical départs */ padding-right: 24px;
position: relative; position: relative;
z-index: 2; z-index: 2;
overflow: hidden; overflow: hidden;
@@ -187,7 +187,7 @@
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
padding-left: 10px; padding-left: 10px;
padding-right: 16px; padding-right: 20px;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
@@ -206,19 +206,21 @@
/* Colonne 5 : Quai / Voie */ /* Colonne 5 : Quai / Voie */
.aff-classiques-departs__col-platform { .aff-classiques-departs__col-platform {
width: 90px; width: 120px;
min-width: 90px; min-width: 120px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
position: relative;
z-index: 20;
} }
.aff-classiques-departs__platform-box { .aff-classiques-departs__platform-box {
width: 58px; width: 104px;
height: 58px; height: 76px;
border: 3.5px solid var(--white); border: 3.5px solid var(--white);
border-radius: 8px; border-radius: 12px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -228,8 +230,9 @@
.aff-classiques-departs__platform-text { .aff-classiques-departs__platform-text {
color: var(--white); color: var(--white);
font-size: 44px; font-size: 58px;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
font-family: "Achemine", sans-serif; font-family: "Achemine", sans-serif;
text-align: center;
} }
@@ -1215,7 +1215,16 @@ export default function ClassiquesDeparts(){
const time = horaire._displayTime || formatTimeNoSeconds(horaire.heure_depart || horaire.departure_time || horaire.time || horaire.heure || ''); const time = horaire._displayTime || formatTimeNoSeconds(horaire.heure_depart || horaire.departure_time || horaire.time || horaire.heure || '');
const destination = horaire.gare_arrivee_nom || horaire.gare_arrivee || horaire.destination || ''; const destination = horaire.gare_arrivee_nom || horaire.gare_arrivee || horaire.destination || '';
const formattedDestination = formatStationName(destination); const formattedDestination = formatStationName(destination);
const rawPlatform = (horaire._displayPlatform || horaire.voie || horaire.quai || '').toString().trim(); const rawPlatform = (
horaire._displayPlatform ||
horaire.quai ||
horaire.voie ||
horaire.platform ||
horaire.platform_code ||
horaire.track ||
(horaire.stop_point && horaire.stop_point.platform_code) ||
''
).toString().trim();
const cleanPlatform = formatPlatform(rawPlatform); const cleanPlatform = formatPlatform(rawPlatform);
const stationId = horaire.gare_depart_id || horaire.gare_id || horaire.origin_id || (gareIdParam || null); const stationId = horaire.gare_depart_id || horaire.gare_id || horaire.origin_id || (gareIdParam || null);