diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-15 17:12:12 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-15 17:12:12 +0100 |
| commit | f349c491284c0cb007a97c9a11220cc00adbb64f (patch) | |
| tree | a02c9a0d1ab5594ffbe2613980201f4b53132976 /src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx | |
| parent | a53080cda003e7821f6cf1f55b73600daf7519e8 (diff) | |
Fix old tables, improve new styles
Diffstat (limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx')
| -rw-r--r-- | src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx index aae9b05..4ee296d 100644 --- a/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx +++ b/src/frontend/app/components/Stops/ConsolidatedCirculationList.tsx @@ -138,7 +138,7 @@ export const ConsolidatedCirculationList: React.FC<RegularTableProps> = ({ ); return ( - <div className="consolidated-circulation-container"> + <> <div className="consolidated-circulation-caption"> {t("estimates.caption", "Estimaciones de llegadas a las {{time}}", { time: dataDate?.toLocaleTimeString(), @@ -150,7 +150,7 @@ export const ConsolidatedCirculationList: React.FC<RegularTableProps> = ({ {t("estimates.none", "No hay estimaciones disponibles")} </div> ) : ( - <div className="consolidated-circulation-list"> + <> {sortedData.map((estimate, idx) => { const displayMinutes = estimate.realTime?.minutes ?? estimate.schedule?.minutes ?? 0; @@ -194,44 +194,15 @@ export const ConsolidatedCirculationList: React.FC<RegularTableProps> = ({ estimate.realTime && estimate.realTime.distance >= 0 && <> · </>} - {delayText} - + {delayText} </div> </div> </div> - - {/*<div className="card-footer"> - <span className="status-text"> - {delayText && ( - <> - {t("estimates.bus_is", "Bus is")} {delayText}.{" "} - </> - )} - </span> - <span className="status-text"> - {estimate.schedule ? ( - <> - {t("estimates.service", "Service")}{" "} - {parseServiceId(estimate.schedule.serviceId)} - {", "} - {t("estimates.trip", "trip")}{" "} - {getTripIdDisplay(estimate.schedule.tripId)} - </> - ) : ( - <> - {t( - "estimates.unknown_service", - "Unknown service. It may be a reinforcement or the service has a different name than planned.", - )} - </> - )} - </span> - </div>*/} </div> ); })} - </div> + </> )} - </div> + </> ); }; |
