diff --git a/packages/cozy-harvest-lib/src/datacards/GeoDataCard.jsx b/packages/cozy-harvest-lib/src/datacards/GeoDataCard.jsx index fd4c4e2a73..b6b8c7d622 100644 --- a/packages/cozy-harvest-lib/src/datacards/GeoDataCard.jsx +++ b/packages/cozy-harvest-lib/src/datacards/GeoDataCard.jsx @@ -31,6 +31,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography' import RightIcon from 'cozy-ui/transpiled/react/Icons/Right' import FlagIcon from 'cozy-ui/transpiled/react/Icons/Flag' import { useI18n } from 'cozy-ui/transpiled/react/I18n' +import Stack from 'cozy-ui/transpiled/react/Stack' import useCycle from './useCycle' import { @@ -110,20 +111,22 @@ const formatDistance = (t, argDistance) => { unit = 'km' distance = distance / 1000 } - return `${Math.round(distance)}${unit}` + return `${Math.round(distance)} ${unit}` } const MiddleDot = () => { return ยท } +const infoIconStyle = { marginRight: '0.3125rem' } + const TripInfoSlideRaw = ({ trip, loading }) => { const { t } = useI18n() const duration = useMemo(() => trip && getFormattedDuration(trip), [trip]) const modes = useMemo(() => trip && getModes(trip), [trip]) return ( -
- + + @@ -137,7 +140,7 @@ const TripInfoSlideRaw = ({ trip, loading }) => { )} - + { )} - {loading ? null : ( - - {duration} - - {' '} - {formatDistance(t, trip.properties.distance)} - - {modes.map(m => t(`datacards.trips.modes.${m}`)).join(', ')} - - )} -
+
+ {loading ? null : ( + + + {duration} + + + {formatDistance(t, trip.properties.distance)} + + {modes.map(m => t(`datacards.trips.modes.${m}`)).join(', ')} + + )} +
+ ) }